e03bc109 by RSA

fix

1 parent 5fbcb51a
Showing 1 changed file with 2 additions and 2 deletions
...@@ -22,12 +22,12 @@ app.use(require('morgan')('dev')) ...@@ -22,12 +22,12 @@ app.use(require('morgan')('dev'))
22 // Routing 22 // Routing
23 23
24 // Primary Open AI Route 24 // Primary Open AI Route
25 app.post('/', async (req, res) => { 25 app.post('/api', async (req, res) => {
26 const { message, currentModel, temperature } = req.body; 26 const { message, currentModel, temperature } = req.body;
27 const response = await openai.createCompletion({ 27 const response = await openai.createCompletion({
28 model: `${currentModel}`,// "text-davinci-003", 28 model: `${currentModel}`,// "text-davinci-003",
29 prompt: `${message}`, 29 prompt: `${message}`,
30 max_tokens: 100, 30 max_tokens: 2500,
31 temperature, 31 temperature,
32 }); 32 });
33 res.json({ 33 res.json({
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!