forked from XiaoMo/ChatGPT-Next-Web
chore: wont parse finished result
This commit is contained in:
parent
5f2745c32a
commit
85445c4ef2
@ -123,7 +123,7 @@ export class ChatGPTApi implements LLMApi {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onmessage(msg) {
|
onmessage(msg) {
|
||||||
if (msg.data === "[DONE]") {
|
if (msg.data === "[DONE]" || finished) {
|
||||||
return finish();
|
return finish();
|
||||||
}
|
}
|
||||||
const text = msg.data;
|
const text = msg.data;
|
||||||
|
Loading…
Reference in New Issue
Block a user