We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9c6e01 commit 7736837Copy full SHA for 7736837
examples/server/public_simplechat/simplechat.js
@@ -407,6 +407,9 @@ class SimpleChat {
407
if (curLine.startsWith("data:")) {
408
curLine = curLine.substring(5);
409
}
410
+ if (curLine.trim() === "[DONE]") {
411
+ break;
412
+ }
413
let curJson = JSON.parse(curLine);
414
console.debug("DBUG:SC:PART:Json:", curJson);
415
this.append_response(this.response_extract_stream(curJson, apiEP));
0 commit comments