gpt-4o-mini
This commit is contained in:
@@ -3,7 +3,7 @@ const aiFeedbackOnReport = async (req, res) => {
|
|||||||
const url = process.env.AI_API_ENDOINT;
|
const url = process.env.AI_API_ENDOINT;
|
||||||
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-16k",
|
"model": "gpt-4o-mini",
|
||||||
"messages": [{ "role": "user",
|
"messages": [{ "role": "user",
|
||||||
"content": JSON.stringify(req.body.score) + " - is the students report card. " + req.body.instruction }]
|
"content": JSON.stringify(req.body.score) + " - is the students report card. " + req.body.instruction }]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const aiFollowupQuestion = async (req, res) => {
|
|||||||
|
|
||||||
|
|
||||||
try {
|
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) {
|
if (!conversationsCollection) {
|
||||||
return res.status(500).json({
|
return res.status(500).json({
|
||||||
success: false,
|
success: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user