Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
|
@@ -607,7 +607,6 @@ 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.error(`当前数据: ${JSON.stringify(linejosn, null, 2)}`, 'Server');
|
| 611 |
if (linejosn?.error) {
|
| 612 |
Logger.error(JSON.stringify(linejosn, null, 2), 'Server');
|
| 613 |
stream.destroy();
|
|
@@ -932,5 +931,4 @@ app.use((req, res) => {
|
|
| 932 |
|
| 933 |
|
| 934 |
app.listen(CONFIG.SERVER.PORT, () => {
|
| 935 |
-
Logger.info(`服务器已启动,监听端口: ${CONFIG.SERVER.PORT}`, 'Server');
|
| 936 |
-
});
|
|
|
|
| 607 |
if (!data.trim()) continue;
|
| 608 |
if (data === "[DONE]") continue;
|
| 609 |
const linejosn = JSON.parse(data);
|
|
|
|
| 610 |
if (linejosn?.error) {
|
| 611 |
Logger.error(JSON.stringify(linejosn, null, 2), 'Server');
|
| 612 |
stream.destroy();
|
|
|
|
| 931 |
|
| 932 |
|
| 933 |
app.listen(CONFIG.SERVER.PORT, () => {
|
| 934 |
+
Logger.info(`服务器已启动,监听端口: ${CONFIG.SERVER.PORT}`, 'Server');
|
|
|