yxmiler commited on
Commit
6f66fe9
·
verified ·
1 Parent(s): 867bcf2

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -607,7 +607,7 @@ 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.info(`当前数据: ${linejosn}`, '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
+ Logger.error(`当前数据: ${JSON.stringify(linejosn, null, 2)}`, 'Server');
611
  if (linejosn?.error) {
612
  Logger.error(JSON.stringify(linejosn, null, 2), 'Server');
613
  stream.destroy();