Rooni commited on
Commit
77079b7
·
verified ·
1 Parent(s): 00faab5

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -34,7 +34,7 @@ app.post('/update', async (req, res) => {
34
 
35
  app.post('/pl', async (req, res) => {
36
  const prompt = req.body.prompt;
37
- const lang = req.body.lang;
38
  const apiKey = req.body.api || getRandomApiKey();
39
 
40
  if (!prompt) {
 
34
 
35
  app.post('/pl', async (req, res) => {
36
  const prompt = req.body.prompt;
37
+ const lang = req.body.lang || "ru";
38
  const apiKey = req.body.api || getRandomApiKey();
39
 
40
  if (!prompt) {