From cad91549002cbed2d1b3c09e642e4916aa39197c Mon Sep 17 00:00:00 2001 From: Kar Date: Thu, 21 Nov 2024 15:51:44 +0530 Subject: [PATCH] gpt-4o-mini --- src/routes/api/aiFeedbackOnReport.js | 2 +- src/routes/api/aiFeedbackOnReportWithFollowup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/api/aiFeedbackOnReport.js b/src/routes/api/aiFeedbackOnReport.js index 3566cab..73503a3 100644 --- a/src/routes/api/aiFeedbackOnReport.js +++ b/src/routes/api/aiFeedbackOnReport.js @@ -3,7 +3,7 @@ const aiFeedbackOnReport = async (req, res) => { const url = process.env.AI_API_ENDOINT; const api_key = process.env.AI_API_KEY; const payload = { - "model": "gpt-3.5-turbo-16k", + "model": "gpt-4o-mini", "messages": [{ "role": "user", "content": JSON.stringify(req.body.score) + " - is the students report card. " + req.body.instruction }] } diff --git a/src/routes/api/aiFeedbackOnReportWithFollowup.js b/src/routes/api/aiFeedbackOnReportWithFollowup.js index 2fc23fb..9faba0d 100644 --- a/src/routes/api/aiFeedbackOnReportWithFollowup.js +++ b/src/routes/api/aiFeedbackOnReportWithFollowup.js @@ -31,7 +31,7 @@ const aiFollowupQuestion = async (req, res) => { try { - const { prompt, sessionId, model = "gpt-3.5-turbo-16k", max_tokens = 200 } = req.body; + const { prompt, sessionId, model = "gpt-4o-mini", max_tokens = 200 } = req.body; if (!conversationsCollection) { return res.status(500).json({ success: false,