Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
@@ -31,7 +31,7 @@ app.post('/cr', async (req, res) => {
|
|
31 |
const apiKey = req.body.api || openai_key;
|
32 |
|
33 |
if (!prompt) {
|
34 |
-
return res.status(400).json({ error: 'error' });
|
35 |
}
|
36 |
|
37 |
try {
|
|
|
31 |
const apiKey = req.body.api || openai_key;
|
32 |
|
33 |
if (!prompt) {
|
34 |
+
return res.status(400).json({ error: 'error' }); // Не удалось принять данные
|
35 |
}
|
36 |
|
37 |
try {
|