d3950386 by Jonille Arreglo

30791_fix

1 parent f2d7cde4
Showing 1 changed file with 5 additions and 0 deletions
......@@ -74,6 +74,11 @@ const max_tokens = process.env.MAX_TOKENS_chatbot_plus ? parseInt(process.env.MA
// Primary Open AI Route
app.post('/api', async (req, res) => {
if(!req.get('host').includes(req.get('origin'))) {
res.status(401);
res.send('Method Not Allowed');
return;
}
const { message, currentModel, temperature } = req.body;
if (currentModel == "gpt-3.5-turbo" || currentModel == "gpt-3.5-turbo-0301") {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!