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