Rooni commited on
Commit
b77b1df
·
verified ·
1 Parent(s): b289e57

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -161,7 +161,7 @@ app.post('/cr', async (req, res) => {
161
 
162
  if (response.data.choices && response.data.choices.length > 0 && response.data.choices[0].message) {
163
  const content = response.data.choices[0].message.content.trim();
164
- console.log(content);
165
  res.json({ content });
166
  } else {
167
  res.status(500).json({ content: 'errora' }); // Ошибка прочтения
 
161
 
162
  if (response.data.choices && response.data.choices.length > 0 && response.data.choices[0].message) {
163
  const content = response.data.choices[0].message.content.trim();
164
+ console.log(`\n---\nЗапрос: ${prompt}\nОтвет: ${content}`);
165
  res.json({ content });
166
  } else {
167
  res.status(500).json({ content: 'errora' }); // Ошибка прочтения