Spaces:
Paused
Paused
Update server.js
Browse files
server.js
CHANGED
|
@@ -37,7 +37,7 @@ app.post('/chat', async (req, res) => {
|
|
| 37 |
res.json({ messages });
|
| 38 |
} catch (error) {
|
| 39 |
console.error(error);
|
| 40 |
-
res.status(500).json({ error:
|
| 41 |
}
|
| 42 |
});
|
| 43 |
|
|
|
|
| 37 |
res.json({ messages });
|
| 38 |
} catch (error) {
|
| 39 |
console.error(error);
|
| 40 |
+
res.status(500).json({ error: `Произошла ошибка при генерации текста: ${error}` });
|
| 41 |
}
|
| 42 |
});
|
| 43 |
|