From e85f3aed7198c4d07bb62a44ee2a314848ee2c74 Mon Sep 17 00:00:00 2001 From: berkingurcan Date: Sat, 15 Feb 2025 22:24:52 +0300 Subject: [PATCH] Update route.ts --- app/api/chat/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts index 0da185c..ea3af89 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -98,7 +98,7 @@ export async function POST(req: Request) { }); } - model = 'gpt-4o' + model = 'o1-mini' } else { configuration = { apiKey: process.env.OPENAI_API_KEY @@ -131,7 +131,7 @@ export async function POST(req: Request) { }); } - model = 'gpt-4o' + model = 'o1-mini' } const openai = new OpenAI(configuration)