yxmiler commited on
Commit
a69edbb
·
verified ·
1 Parent(s): 56e8063

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -608,7 +608,7 @@ async function handleResponse(response, model, res, isStream) {
608
  if (!data.trim()) continue;
609
  if (data === "[DONE]") continue;
610
  const linejosn = JSON.parse(data);
611
- Logger.info(linejosn, 'Server');
612
  if (linejosn?.error) {
613
  Logger.error(JSON.stringify(linejosn, null, 2), 'Server');
614
  stream.destroy();
 
608
  if (!data.trim()) continue;
609
  if (data === "[DONE]") continue;
610
  const linejosn = JSON.parse(data);
611
+ Logger.error(JSON.stringify(linejosn, null, 2), 'Server');
612
  if (linejosn?.error) {
613
  Logger.error(JSON.stringify(linejosn, null, 2), 'Server');
614
  stream.destroy();