Spaces:
Running
Running
Update server.js
Browse files
server.js
CHANGED
@@ -51,7 +51,7 @@ app.post('/pl', async (req, res) => {
|
|
51 |
|
52 |
if (response.data.choices && response.data.choices.length > 0 && response.data.choices[0].message) {
|
53 |
const content = response.data.choices[0].message.content.trim();
|
54 |
-
console.log(`\n---\nПользователь: ${prompt}\n Ответ:\n ${content}`);
|
55 |
res.json({ content });
|
56 |
} else {
|
57 |
res.status(500).json({ content: 'errora' }); // Ошибка прочтения
|
|
|
51 |
|
52 |
if (response.data.choices && response.data.choices.length > 0 && response.data.choices[0].message) {
|
53 |
const content = response.data.choices[0].message.content.trim();
|
54 |
+
//console.log(`\n---\nПользователь: ${prompt}\n Ответ:\n ${content}`);
|
55 |
res.json({ content });
|
56 |
} else {
|
57 |
res.status(500).json({ content: 'errora' }); // Ошибка прочтения
|