From daf833d95981b710e423047ba5011ecc3232da99 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Sun, 1 Sep 2024 09:24:22 +0300 Subject: [PATCH] switch from gpt-4o-mini to gpt-4o- --- app/api/repo/[graph]/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/repo/[graph]/route.ts b/app/api/repo/[graph]/route.ts index 04b63520..1fe88b8b 100644 --- a/app/api/repo/[graph]/route.ts +++ b/app/api/repo/[graph]/route.ts @@ -238,7 +238,7 @@ export async function GET(request: NextRequest, { params }: { params: { graph: s // Construct conversation body let body: ChatCompletionCreateParams = { - model: "gpt-4o-mini", + model: "gpt-4o", messages: messages, tools: tools, tool_choice: "auto", @@ -286,7 +286,7 @@ export async function GET(request: NextRequest, { params }: { params: { graph: s messages = [{ "role": "system", "content": prompt }]; response = await openai.chat.completions.create({ - "model": "gpt-4o-mini", + "model": "gpt-4o", "messages": messages, }); const answer = response.choices[0]['message']['content'];