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,