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'))
// Routing
// Primary Open AI Route
app.post('/', async (req, res) => {
app.post('/api', async (req, res) => {
const { message, currentModel, temperature } = req.body;
const response = await openai.createCompletion({
model: `${currentModel}`,// "text-davinci-003",
prompt: `${message}`,
max_tokens: 100,
max_tokens: 2500,
temperature,
});
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!