From bdae3ef7591c5fdd51403aea1b537f7d1da477ef Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Thu, 7 Nov 2024 20:34:00 -0500 Subject: [PATCH 1/2] Add required field channel_id when setting prompts --- assistant.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assistant.go b/assistant.go index ef1425ff..737b09fc 100644 --- a/assistant.go +++ b/assistant.go @@ -60,6 +60,8 @@ func (api *Client) SetAssistantThreadsSuggestedPromptsContext(ctx context.Contex values.Add("thread_ts", params.ThreadTS) } + values.Add("channel_id", params.ChannelID) + // Send Prompts as JSON prompts, err := json.Marshal(params.Prompts) if err != nil { From 48a59e993079bcce3fe1257cc5959b0523cb4432 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Thu, 7 Nov 2024 20:41:47 -0500 Subject: [PATCH 2/2] Set required field channel_id when setting status --- assistant.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assistant.go b/assistant.go index 737b09fc..8432f89b 100644 --- a/assistant.go +++ b/assistant.go @@ -100,6 +100,8 @@ func (api *Client) SetAssistantThreadsStatusContext(ctx context.Context, params values.Add("thread_ts", params.ThreadTS) } + values.Add("channel_id", params.ChannelID) + // Always send the status parameter, if empty, it will clear any existing status values.Add("status", params.Status)