Update OpenAI model selection for better agentic coding support (#9597)

This commit is contained in:
Eleanor Berger 2025-07-09 16:44:02 +02:00 committed by GitHub
parent 5cb534217a
commit d04c4c493e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 12 deletions

View File

@ -16,17 +16,15 @@ export const VERIFIED_MODELS = [
export const VERIFIED_OPENAI_MODELS = [
"gpt-4o",
"gpt-4o-mini",
"gpt-4-turbo",
"gpt-4",
"gpt-4-32k",
"gpt-4.1",
"gpt-4.1-2025-04-14",
"o1-mini",
"o1",
"o3",
"o3-2025-04-16",
"o3-mini",
"o3-mini-2025-01-31",
"o4-mini",
"o4-mini-2025-04-16",
"codex-mini-latest",
];
// LiteLLM does not return the compatible Anthropic models with the provider, so we list them here to set them ourselves

View File

@ -151,13 +151,12 @@ VERIFIED_OPENAI_MODELS = [
'o4-mini',
'gpt-4o',
'gpt-4o-mini',
'gpt-4-turbo',
'gpt-4',
'gpt-4-32k',
'gpt-4.1',
'gpt-4.1-2025-04-14',
'o1-mini',
'o1',
'o3-mini',
'o3-mini-2025-01-31',
'o3',
'codex-mini-latest',
]
VERIFIED_ANTHROPIC_MODELS = [

View File

@ -397,7 +397,7 @@ class TestModelAndProviderFunctions:
models = [
'openai/gpt-4o',
'anthropic/claude-sonnet-4-20250514',
'o3-mini',
'o3',
'o4-mini',
'devstral-small-2505',
'mistral/devstral-small-2505',
@ -414,7 +414,7 @@ class TestModelAndProviderFunctions:
assert len(result['openai']['models']) == 3
assert 'gpt-4o' in result['openai']['models']
assert 'o3-mini' in result['openai']['models']
assert 'o3' in result['openai']['models']
assert 'o4-mini' in result['openai']['models']
assert len(result['anthropic']['models']) == 1