改进
All checks were successful
Build / build (push) Successful in 8m12s

This commit is contained in:
Twilight 2024-08-20 02:40:32 +08:00
parent 48cd5f3965
commit 35952f81a2

View File

@ -139,8 +139,12 @@ function streamChat(streamId: String) {
let i = 0;
evtSource.addEventListener("data", (e) => {
if (e.data === "[DONE]") {
evtSource.close();
return;
}
const data = JSON.parse(e.data);
console.log(data.state);
let append = true;