Rooni commited on
Commit
af4adf3
·
verified ·
1 Parent(s): 2d17627

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -154,7 +154,7 @@ app.post('/cr', async (req, res) => {
154
  });
155
 
156
  if (response.data.choices && response.data.choices.length > 0 && response.data.choices[0].message) {
157
- const content = response.data.choices[0].message.content.trim();
158
  console.log(content);
159
  res.json({ content });
160
  } else {
 
154
  });
155
 
156
  if (response.data.choices && response.data.choices.length > 0 && response.data.choices[0].message) {
157
+ const content = response.data.trim();
158
  console.log(content);
159
  res.json({ content });
160
  } else {