feat: move from gpt3.5 to gpt-4o

This commit is contained in:
Rotimi Best
2024-05-15 23:49:51 +01:00
parent ab815cadec
commit 78db68fa51
4 changed files with 4 additions and 4 deletions
@@ -24,7 +24,7 @@ export async function POST({ request }) {
const { courseTitle, lessonTitle, type, locale } = JSON.parse(prompt);
const response = await openai.createChatCompletion({
model: 'gpt-3.5-turbo',
model: 'gpt-4o',
messages: [
{
role: 'system',
@@ -17,7 +17,7 @@ export async function POST({ request }) {
const { prompt } = await request.json();
const response = await openai.createChatCompletion({
model: 'gpt-3.5-turbo',
model: 'gpt-4o',
messages: [
{
role: 'system',
@@ -61,7 +61,7 @@ I am a teacher and I need your help evaluating my students after I have taught a
NB: Ask a mixture of ${optionNumber} options and ${questionNumber} DIFFERENT Question Types(RADIO, CHECKBOX AND TEXTAREA), mark the correct answer.`;
const response = await openai.createChatCompletion({
model: 'gpt-3.5-turbo',
model: 'gpt-4o',
messages: [
{
role: 'system',
@@ -17,7 +17,7 @@ export async function POST({ request }) {
const { prompt } = await request.json();
const response = await openai.createChatCompletion({
model: 'gpt-3.5-turbo',
model: 'gpt-4o',
messages: [
{
role: 'system',