yxmiler commited on
Commit
7eb6c64
·
verified ·
1 Parent(s): b46b80c

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -0
index.js CHANGED
@@ -586,6 +586,7 @@ async function handleResponse(response, model, res, isStream) {
586
  if (!data.trim()) continue;
587
  if(data === "[DONE]") continue;
588
  const linejosn = JSON.parse(data);
 
589
  if (linejosn?.error) {
590
  Logger.error(JSON.stringify(linejosn,null,2), 'Server');
591
  stream.destroy();
 
586
  if (!data.trim()) continue;
587
  if(data === "[DONE]") continue;
588
  const linejosn = JSON.parse(data);
589
+ console.log(linejosn)
590
  if (linejosn?.error) {
591
  Logger.error(JSON.stringify(linejosn,null,2), 'Server');
592
  stream.destroy();