Skip to content

Commit

Permalink
fix(server) : not show alert when DONE is received (ggerganov#10674)
Browse files Browse the repository at this point in the history
  • Loading branch information
pminev authored Dec 5, 2024
1 parent c9c6e01 commit 7736837
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/server/public_simplechat/simplechat.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,9 @@ class SimpleChat {
if (curLine.startsWith("data:")) {
curLine = curLine.substring(5);
}
if (curLine.trim() === "[DONE]") {
break;
}
let curJson = JSON.parse(curLine);
console.debug("DBUG:SC:PART:Json:", curJson);
this.append_response(this.response_extract_stream(curJson, apiEP));
Expand Down

0 comments on commit 7736837

Please sign in to comment.