mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
fix: streaming doesn't work when newline characters are malformed
This commit is contained in:
parent
a919affca3
commit
f87534d4a7
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ export default {
|
|||
const encodedChunk = converter.encode("data: " + JSON.stringify({ "response": chunkText }) + "\n\n");
|
||||
controller.enqueue(encodedChunk);
|
||||
}
|
||||
const doneChunk = converter.encode("data: [DONE] \n\n");
|
||||
const doneChunk = converter.encode("data: [DONE]");
|
||||
controller.enqueue(doneChunk);
|
||||
controller.close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue