diff --git a/src/routes/api/aiFeedbackOnReport.js b/src/routes/api/aiFeedbackOnReport.js index 902e91a..b420316 100644 --- a/src/routes/api/aiFeedbackOnReport.js +++ b/src/routes/api/aiFeedbackOnReport.js @@ -3,7 +3,7 @@ const aiFeedbackOnReport = async (req, res) => { const api_key = process.env.AI_API_KEY; const payload = { - "model": "gpt-3.5-turbo", + "model": "gpt-4o-mini", "messages": [{ "role": "user", "content": JSON.stringify(data.score) + "\n above is a sample of a students report card\n" + data.instruction }] } diff --git a/src/routes/v1/api.route.js b/src/routes/v1/api.route.js index 35fbd67..014fc60 100644 --- a/src/routes/v1/api.route.js +++ b/src/routes/v1/api.route.js @@ -146,7 +146,7 @@ router.get("/ping", (req, res) => { // AI feedback for teacher on children's report card router.post("/aiFeedbackOnReport", (req, res) => { - aiQuestion(req, res); + aiFeedbackOnReport(req, res); });