Skip to content

Commit

Permalink
Add required field channel_id when setting prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
MattDavisRV committed Nov 8, 2024
1 parent 00d0e9a commit bdae3ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assistant.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bdae3ef

Please sign in to comment.