Rooni commited on
Commit
7a7e6d0
·
verified ·
1 Parent(s): 035990f

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
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' }); // Ошибка прочтения