Spaces:
Runtime error
Runtime error
Implemented streaming message updates by appending content to the output and updating the streamingMessage content.
Browse files76 unmodified lines7778798081828376 unmodified lines})) {if (chunk.choices && chunk.choices.length > 0) {if (streamingMessage && chunk.choices[0]?.delta?.content) {streamingMessage.content += chunk.choices[0].delta.content;messages = [...messages];}}76 unmodified lines777879808182838476 unmodified lines})) {if (chunk.choices && chunk.choices.length > 0) {if (streamingMessage && chunk.choices[0]?.delta?.content) {out += chunk.choices[0].delta.content;streamingMessage.content = out;messages = [...messages];}}
src/lib/components/Playground/Playground.svelte+2-1