Skip to content
Snippets Groups Projects
Unverified Commit 83776002 authored by Timothy Carambat's avatar Timothy Carambat Committed by GitHub
Browse files

Patch Azure text completion persistence (#647)

parent 171b1dd9
No related branches found
No related tags found
No related merge requests found
...@@ -269,6 +269,7 @@ function handleStreamResponses(response, stream, responseProps) { ...@@ -269,6 +269,7 @@ function handleStreamResponses(response, stream, responseProps) {
for (const choice of event.choices) { for (const choice of event.choices) {
const delta = choice.delta?.content; const delta = choice.delta?.content;
if (!delta) continue; if (!delta) continue;
fullText += delta;
writeResponseChunk(response, { writeResponseChunk(response, {
uuid, uuid,
sources: [], sources: [],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment