fix(server) : not show alert when DONE is received (#10674)
This commit is contained in:
parent
c9c6e01dae
commit
7736837d62
1 changed files with 3 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue