Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions lib/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
} 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.');
}
}
Expand All @@ -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);
}
Expand Down Expand Up @@ -135,7 +138,7 @@ export async function getModel(requireVision: boolean = false) {
const openai = createOpenAI({
apiKey: openaiApiKey,
});
return openai('gpt-4o');
return openai('gpt-6');
}

/**
Expand Down