去除调试

This commit is contained in:
Vinlic 2024-03-24 02:10:01 +08:00
parent 9d74fd2256
commit f35af3f37a

View File

@ -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) => {