Rooni commited on
Commit
4c864dd
·
verified ·
1 Parent(s): e549d37

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +2 -2
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 (!prompt) {
133
- return res.status(400).json({ error: 'error' }); // Не удалось принять данные
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 {