mirror of
https://github.com/LLM-Red-Team/qwen-free-api.git
synced 2024-12-23 07:09:21 +08:00
去除调试
This commit is contained in:
parent
9d74fd2256
commit
f35af3f37a
@ -323,7 +323,6 @@ async function receiveStream(stream: any): Promise<any> {
|
|||||||
const result = _.attempt(() => JSON.parse(event.data));
|
const result = _.attempt(() => JSON.parse(event.data));
|
||||||
if (_.isError(result))
|
if (_.isError(result))
|
||||||
throw new Error(`Stream response invalid: ${event.data}`);
|
throw new Error(`Stream response invalid: ${event.data}`);
|
||||||
console.log(result)
|
|
||||||
if (!data.id && result.sessionId) data.id = result.sessionId;
|
if (!data.id && result.sessionId) data.id = result.sessionId;
|
||||||
if (result.msgStatus != "finished") {
|
if (result.msgStatus != "finished") {
|
||||||
const text = (result.contents || []).reduce((str, part) => {
|
const text = (result.contents || []).reduce((str, part) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user