🚸 (openai) Display OpenAI initial response error

This commit is contained in:
Baptiste Arnaud
2023-08-02 08:10:26 +02:00
parent e20e6e7127
commit c534613087
7 changed files with 19 additions and 9 deletions

View File

@@ -105,6 +105,7 @@ export const ConversationContainer = (props: Props) => {
})
const streamMessage = (content: string) => {
console.log('STREAM', content)
setIsSending(false)
const lastChunk = [...chatChunks()].pop()
if (!lastChunk) return