gpt-4o-mini
parent
c74a6fd67d
commit
1244f5f06b
|
@ -3,7 +3,7 @@ const aiFeedbackOnReport = async (req, res) => {
|
||||||
const api_key = process.env.AI_API_KEY;
|
const api_key = process.env.AI_API_KEY;
|
||||||
|
|
||||||
const payload = {
|
const payload = {
|
||||||
"model": "gpt-3.5-turbo",
|
"model": "gpt-4o-mini",
|
||||||
"messages": [{ "role": "user",
|
"messages": [{ "role": "user",
|
||||||
"content": JSON.stringify(data.score) + "\n above is a sample of a students report card\n" + data.instruction }]
|
"content": JSON.stringify(data.score) + "\n above is a sample of a students report card\n" + data.instruction }]
|
||||||
}
|
}
|
||||||
|
|
|
@ -146,7 +146,7 @@ router.get("/ping", (req, res) => {
|
||||||
|
|
||||||
// AI feedback for teacher on children's report card
|
// AI feedback for teacher on children's report card
|
||||||
router.post("/aiFeedbackOnReport", (req, res) => {
|
router.post("/aiFeedbackOnReport", (req, res) => {
|
||||||
aiQuestion(req, res);
|
aiFeedbackOnReport(req, res);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue