diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 9c1f11906..f22f4c4fc 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1065,8 +1065,10 @@ if (choices) { if (choices[0]?.message?.content) { + // Non-stream response message.content += choices[0]?.message?.content; } else { + // Stream response let value = choices[0]?.delta?.content ?? ''; if (message.content == '' && value == '\n') { console.log('Empty response');