Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
@@ -607,7 +607,6 @@ async function handleResponse(response, model, res, isStream) {
|
|
607 |
if (!data.trim()) continue;
|
608 |
if (data === "[DONE]") continue;
|
609 |
const linejosn = JSON.parse(data);
|
610 |
-
Logger.error(`当前数据: ${JSON.stringify(linejosn, null, 2)}`, 'Server');
|
611 |
if (linejosn?.error) {
|
612 |
Logger.error(JSON.stringify(linejosn, null, 2), 'Server');
|
613 |
stream.destroy();
|
|
|
607 |
if (!data.trim()) continue;
|
608 |
if (data === "[DONE]") continue;
|
609 |
const linejosn = JSON.parse(data);
|
|
|
610 |
if (linejosn?.error) {
|
611 |
Logger.error(JSON.stringify(linejosn, null, 2), 'Server');
|
612 |
stream.destroy();
|