Spaces:
Sleeping
Sleeping
Update index.js
Browse files
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();
|