fix(server) : not show alert when DONE is received (#10674)
Some checks failed
flake8 Lint / Lint (push) Waiting to run
Python Type-Check / pyright type-check (push) Waiting to run
Python check requirements.txt / check-requirements (push) Has been cancelled

This commit is contained in:
Plamen Minev 2024-12-05 23:36:41 +02:00 committed by GitHub
parent c9c6e01dae
commit 7736837d62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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));