Skip to content

Commit

Permalink
fix: add beta assistant header to CreateMessage call (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
floodfx committed Nov 15, 2023
1 parent 515de02 commit fe67abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ type MessageFilesList struct {
// CreateMessage creates a new message.
func (c *Client) CreateMessage(ctx context.Context, threadID string, request MessageRequest) (msg Message, err error) {
urlSuffix := fmt.Sprintf("/threads/%s/%s", threadID, messagesSuffix)
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL(urlSuffix), withBody(request))
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL(urlSuffix), withBody(request), withBetaAssistantV1())
if err != nil {
return
}
Expand Down

0 comments on commit fe67abb

Please sign in to comment.