From f490aac87e685ae5ac363195d40909d623b3ca3b Mon Sep 17 00:00:00 2001 From: Kar Date: Fri, 20 Sep 2024 15:28:37 +0530 Subject: [PATCH] aiFeedbackOnReport --- src/routes/api/aiFeedbackOnReport.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/routes/api/aiFeedbackOnReport.js b/src/routes/api/aiFeedbackOnReport.js index f130a6f..474849c 100644 --- a/src/routes/api/aiFeedbackOnReport.js +++ b/src/routes/api/aiFeedbackOnReport.js @@ -1,13 +1,11 @@ const aiFeedbackOnReport = async (req, res) => { const url = process.env.AI_API_ENDOINT; const api_key = process.env.AI_API_KEY; -console.log(req.body.score); const payload = { "model": "gpt-4o-mini", "messages": [{ "role": "user", "content": JSON.stringify(req.body.score) + " - is a sample of a students report card " + req.body.instruction }] } - // res.send(req); try { const apiResponse = await fetch(url, { method: 'POST',