mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-27 02:59:22 +08:00
修改一些
This commit is contained in:
@@ -206,14 +206,14 @@ export class DeepseekApi implements LLMApi {
|
||||
}
|
||||
},
|
||||
onmessage(msg) {
|
||||
console.log("msg", msg);
|
||||
// console.log("msg", msg);
|
||||
if (msg.data === "[DONE]" || finished) {
|
||||
return finish();
|
||||
}
|
||||
const text = msg.data;
|
||||
try {
|
||||
const json = JSON.parse(text);
|
||||
console.log("json", json);
|
||||
// console.log("json", json);
|
||||
|
||||
const choices = json.choices as Array<{
|
||||
delta: { content: string };
|
||||
|
||||
Reference in New Issue
Block a user