mirror of
https://github.com/Yanyutin753/ChatGPT-Next-Web-LangChain-Gpt-4-All.git
synced 2025-10-15 07:31:39 +00:00
chore: wont parse finished result
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user