Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
@@ -129,8 +129,8 @@ app.post('/cr', async (req, res) => {
|
|
129 |
const promptt = req.body.prompt;
|
130 |
const apiKey = req.body.api || openai_key;
|
131 |
|
132 |
-
if (!
|
133 |
-
return res.status(400).json(
|
134 |
}
|
135 |
|
136 |
try {
|
|
|
129 |
const promptt = req.body.prompt;
|
130 |
const apiKey = req.body.api || openai_key;
|
131 |
|
132 |
+
if (!promptt) {
|
133 |
+
return res.status(400).json("wait"); // Не удалось принять данные
|
134 |
}
|
135 |
|
136 |
try {
|