Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
@@ -82,10 +82,10 @@ app.post('/gen', async (req, res) => {
|
|
82 |
});
|
83 |
|
84 |
if (response.data.choices && response.data.choices.length > 0 && response.data.choices[0].message) {
|
85 |
-
console.log(response
|
86 |
|
87 |
const content = JSON.parse(response.data);
|
88 |
-
res.json({
|
89 |
|
90 |
} else {
|
91 |
const content = response;
|
|
|
82 |
});
|
83 |
|
84 |
if (response.data.choices && response.data.choices.length > 0 && response.data.choices[0].message) {
|
85 |
+
console.log(response);
|
86 |
|
87 |
const content = JSON.parse(response.data);
|
88 |
+
res.json({ "TESTING MODE!!!" });
|
89 |
|
90 |
} else {
|
91 |
const content = response;
|