Spaces:
Sleeping
Sleeping
Update server.js
Browse files
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.
|
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 {
|