From 8b4652edf02b7bef32861e5699a6df9485530fc1 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 20:56:05 +0000 Subject: [PATCH 1/2] Update OpenAI model to gpt-6-astra Update getModel in lib/utils/index.ts to use gpt-6-astra for OpenAI provider calls. Co-authored-by: ngoiyaeric <115367894+ngoiyaeric@users.noreply.github.com> --- lib/utils/index.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/utils/index.ts b/lib/utils/index.ts index 5b4f03e1..35db7697 100644 --- a/lib/utils/index.ts +++ b/lib/utils/index.ts @@ -68,13 +68,16 @@ export async function getModel(requireVision: boolean = false) { throw new Error('Selected model is not configured.'); } case 'GPT-5.1': + case 'gpt-6-astra': + case 'GPT-6 Astra': + case 'GPT-6': if (openaiApiKey) { const openai = createOpenAI({ apiKey: openaiApiKey, }); - return openai('gpt-4o'); + return openai('gpt-6-astra'); } else { - console.error('User selected "GPT-5.1" but OPENAI_API_KEY is not set.'); + console.error('User selected OpenAI model but OPENAI_API_KEY is not set.'); throw new Error('Selected model is not configured.'); } } @@ -86,7 +89,7 @@ export async function getModel(requireVision: boolean = false) { const openai = createOpenAI({ apiKey: openaiApiKey, }); - return openai('gpt-4o'); + return openai('gpt-6-astra'); } catch (error) { console.warn('OpenAI API unavailable, falling back to next provider:', error); } @@ -135,7 +138,7 @@ export async function getModel(requireVision: boolean = false) { const openai = createOpenAI({ apiKey: openaiApiKey, }); - return openai('gpt-4o'); + return openai('gpt-6-astra'); } /** From fef64cd855c8aeb4d6247eed3eeb322627917daa Mon Sep 17 00:00:00 2001 From: EreQ Date: Fri, 4 Sep 2026 06:10:36 +0300 Subject: [PATCH 2/2] Change OpenAI model from 'gpt-6-astra' to 'gpt-6' --- lib/utils/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/index.ts b/lib/utils/index.ts index 35db7697..892f312d 100644 --- a/lib/utils/index.ts +++ b/lib/utils/index.ts @@ -75,7 +75,7 @@ export async function getModel(requireVision: boolean = false) { const openai = createOpenAI({ apiKey: openaiApiKey, }); - return openai('gpt-6-astra'); + return openai('gpt-6'); } else { console.error('User selected OpenAI model but OPENAI_API_KEY is not set.'); throw new Error('Selected model is not configured.'); @@ -138,7 +138,7 @@ export async function getModel(requireVision: boolean = false) { const openai = createOpenAI({ apiKey: openaiApiKey, }); - return openai('gpt-6-astra'); + return openai('gpt-6'); } /**