diff --git a/app/api/repo/[graph]/route.ts b/app/api/repo/[graph]/route.ts index b43e1b25..04b63520 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-3.5-turbo", + model: "gpt-4o-mini", messages: messages, tools: tools, tool_choice: "auto", @@ -286,11 +286,11 @@ export async function GET(request: NextRequest, { params }: { params: { graph: s messages = [{ "role": "system", "content": prompt }]; response = await openai.chat.completions.create({ - "model": "gpt-3.5-turbo", + "model": "gpt-4o-mini", "messages": messages, }); const answer = response.choices[0]['message']['content']; console.log(`response: ${answer}`); return NextResponse.json({ result: answer }, { status: 200 }); -} \ No newline at end of file +}