fix(server) : not show alert when DONE is received

This commit is contained in:
Plamen Minev 2024-12-05 17:25:51 +02:00
parent 59f4db1088
commit eef45c96e4
No known key found for this signature in database
GPG key ID: 5EC8366F171A2FE4

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