Skip to content

Commit

Permalink
some model require not empty message
Browse files Browse the repository at this point in the history
update
  • Loading branch information
namchuai committed Jun 10, 2024
1 parent 6770b75 commit f7077fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/hooks/useSendChatMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 110,7 @@ export default function useSendChatMessage() {
topMessage.role === ChatCompletionRole.User
? ChatCompletionRole.Assistant
: ChatCompletionRole.User,
content: '',
content: '.', // some model requires not empty message
})
}
stack.push(message)
Expand Down

0 comments on commit f7077fa

Please sign in to comment.