Skip to content

Commit

Permalink
fix: create message request with string content instead of array
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan committed Aug 2, 2024
1 parent 4b6523c commit e1d0b8d
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,7 @@ export class ChatClient {

const createMessageDto: Cortex.Beta.Threads.Messages.MessageCreateParams = {
role: 'user',
content: [
{
type: 'text',
text: userInput,
},
],
content: userInput,
};
this.cortex.beta.threads.messages.create(threadId, createMessageDto);

Expand Down

0 comments on commit e1d0b8d

Please sign in to comment.