π OpenHands: AI-Driven Development
Add gpt-5-mini-2025-08-07 as verified model & supported in OpenHands provider (#10628)
Xingyao Wang8f46a0a7a3c1
diff --git a/frontend/src/utils/verified-models.ts b/frontend/src/utils/verified-models.tsindex d9719a4de7..7349c55224 100644--- a/frontend/src/utils/verified-models.ts+++ b/frontend/src/utils/verified-models.ts@@ -24,12 +24,14 @@ export const VERIFIED_MODELS = ["kimi-k2-0711-preview","qwen3-coder-480b","gpt-5-2025-08-07",+ "gpt-5-mini-2025-08-07",];// LiteLLM does not return OpenAI models with the provider, so we list them here to set them ourselves for consistency// (e.g., they return `gpt-4o` instead of `openai/gpt-4o`)export const VERIFIED_OPENAI_MODELS = ["gpt-5-2025-08-07",+ "gpt-5-mini-2025-08-07","gpt-4o","gpt-4o-mini","gpt-4.1",@@ -66,6 +68,7 @@ export const VERIFIED_MISTRAL_MODELS = [export const VERIFIED_OPENHANDS_MODELS = ["claude-sonnet-4-20250514","gpt-5-2025-08-07",+ "gpt-5-mini-2025-08-07","claude-opus-4-20250514","claude-opus-4-1-20250805","gemini-2.5-pro",diff --git a/openhands/cli/utils.py b/openhands/cli/utils.pyindex 37e6042315..ed7570b5fa 100644--- a/openhands/cli/utils.py+++ b/openhands/cli/utils.py@@ -151,6 +151,7 @@ VERIFIED_PROVIDERS = ['openhands', 'anthropic', 'openai', 'mistral']VERIFIED_OPENAI_MODELS = ['gpt-5-2025-08-07',+ 'gpt-5-mini-2025-08-07','o4-mini','gpt-4o','gpt-4o-mini',@@ -186,6 +187,7 @@ VERIFIED_MISTRAL_MODELS = [VERIFIED_OPENHANDS_MODELS = ['claude-sonnet-4-20250514','gpt-5-2025-08-07',+ 'gpt-5-mini-2025-08-07','claude-opus-4-20250514','claude-opus-4-1-20250805','devstral-small-2507',diff --git a/openhands/llm/model_features.py b/openhands/llm/model_features.pyindex b6bc50283b..1234e7a3c3 100644--- a/openhands/llm/model_features.py+++ b/openhands/llm/model_features.py@@ -100,6 +100,7 @@ REASONING_EFFORT_PATTERNS: list[str] = ['gemini-2.5-pro','gpt-5','gpt-5-2025-08-07',+ 'gpt-5-mini-2025-08-07',# DeepSeek reasoning family'deepseek-r1-0528*',]diff --git a/openhands/utils/llm.py b/openhands/utils/llm.pyindex 7ec7a70b0f..61da34bbba 100644--- a/openhands/utils/llm.py+++ b/openhands/utils/llm.py@@ -57,6 +57,7 @@ def get_supported_llm_models(config: OpenHandsConfig) -> list[str]:openhands_models = ['openhands/claude-sonnet-4-20250514','openhands/gpt-5-2025-08-07',+ 'openhands/gpt-5-mini-2025-08-07','openhands/claude-opus-4-20250514','openhands/gemini-2.5-pro','openhands/o3',diff --git a/tests/unit/llm/test_model_features.py b/tests/unit/llm/test_model_features.pyindex 44c39393cf..35aae2b248 100644--- a/tests/unit/llm/test_model_features.py+++ b/tests/unit/llm/test_model_features.py@@ -86,6 +86,15 @@ def test_model_matches_provider_qualified(name, pattern, expected):supports_stop_words=True,),),+ (+ 'gpt-5-mini-2025-08-07',+ ModelFeatures(+ supports_function_calling=True,+ supports_reasoning_effort=True,+ supports_prompt_cache=False,+ supports_stop_words=True,+ ),+ ),('o3-mini',ModelFeatures(@@ -172,6 +181,7 @@ def test_get_features(model, expect):'gpt-4o','gpt-4.1','gpt-5',+ 'gpt-5-mini-2025-08-07',# o-series'o1-2024-12-17','o3-mini',@@ -199,6 +209,7 @@ def test_function_calling_models(model):'gemini-2.5-flash','gemini-2.5-pro','gpt-5',+ 'gpt-5-mini-2025-08-07',],)def test_reasoning_effort_models(model):@@ -252,6 +263,7 @@ def test_prompt_cache_models(model):('gemini-2.5-pro', True),('gpt-5', True),('gpt-5-2025-08-07', True),+ ('gpt-5-mini-2025-08-07', True),('claude-opus-4-1-20250805', False),# DeepSeek('deepseek/DeepSeek-R1-0528:671b-Q4_K_XL', True),