aiFeedbackOnReport

This commit is contained in:
Kar
2024-10-04 22:29:54 +05:30
parent f490aac87e
commit 58805dac6f
7 changed files with 79 additions and 31 deletions

View File

@@ -4,7 +4,7 @@ const aiFeedbackOnReport = async (req, res) => {
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 }]
"content": JSON.stringify(req.body.score) + " - is the students report card. " + req.body.instruction }]
}
try {
const apiResponse = await fetch(url, {