Add MiniMax-M2.5 model support (#12835)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Graham Neubig
2026-02-11 16:57:22 +00:00
committed by GitHub
parent c1d9d11772
commit 736f5b2255
2 changed files with 25 additions and 58 deletions

View File

@@ -8,28 +8,17 @@ export const VERIFIED_PROVIDERS = [
"clarifai",
];
export const VERIFIED_MODELS = [
"o3-mini-2025-01-31",
"o3-2025-04-16",
"o3",
"o4-mini-2025-04-16",
"claude-3-5-sonnet-20241022",
"claude-3-7-sonnet-20250219",
"claude-sonnet-4-20250514",
"claude-sonnet-4-5-20250929",
"claude-haiku-4-5-20251001",
"claude-opus-4-20250514",
"claude-opus-4-1-20250805",
"claude-opus-4-5-20251101",
"gemini-2.5-pro",
"o4-mini",
"claude-sonnet-4-5-20250929",
"gpt-5.2-codex",
"gpt-5.2",
"MiniMax-M2.5",
"gemini-3-pro-preview",
"gemini-3-flash-preview",
"deepseek-chat",
"devstral-small-2505",
"devstral-small-2507",
"devstral-medium-2507",
"devstral-medium-2512",
"kimi-k2-0711-preview",
"qwen3-coder-480b",
"gpt-5.2",
"gpt-5.2-codex",
];
// LiteLLM does not return OpenAI models with the provider, so we list them here to set them ourselves for consistency
@@ -39,55 +28,36 @@ export const VERIFIED_OPENAI_MODELS = [
"gpt-5.2-codex",
"gpt-4o",
"gpt-4o-mini",
"gpt-4.1",
"gpt-4.1-2025-04-14",
"o3",
"o3-2025-04-16",
"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
// (e.g., they return `claude-3-5-sonnet-20241022` instead of `anthropic/claude-3-5-sonnet-20241022`)
export const VERIFIED_ANTHROPIC_MODELS = [
"claude-opus-4-5-20251101",
"claude-sonnet-4-5-20250929",
"claude-3-5-sonnet-20240620",
"claude-3-5-sonnet-20241022",
"claude-3-5-haiku-20241022",
"claude-3-7-sonnet-20250219",
"claude-sonnet-4-20250514",
"claude-sonnet-4-5-20250929",
"claude-haiku-4-5-20251001",
"claude-opus-4-20250514",
"claude-opus-4-1-20250805",
"claude-opus-4-5-20251101",
];
// LiteLLM does not return the compatible Mistral models with the provider, so we list them here to set them ourselves
// (e.g., they return `devstral-small-2505` instead of `mistral/devstral-small-2505`)
export const VERIFIED_MISTRAL_MODELS = [
"devstral-small-2507",
"devstral-medium-2507",
"devstral-small-2505",
];
export const VERIFIED_MISTRAL_MODELS = ["devstral-medium-2512"];
// LiteLLM does not return the compatible OpenHands models with the provider, so we list them here to set them ourselves
// (e.g., they return `claude-sonnet-4-20250514` instead of `openhands/claude-sonnet-4-20250514`)
export const VERIFIED_OPENHANDS_MODELS = [
"claude-sonnet-4-20250514",
"claude-sonnet-4-5-20250929",
"claude-haiku-4-5-20251001",
"gpt-5.2",
"gpt-5.2-codex",
"claude-opus-4-20250514",
"claude-opus-4-1-20250805",
"claude-opus-4-5-20251101",
"gemini-2.5-pro",
"o3",
"o4-mini",
"devstral-small-2507",
"devstral-medium-2507",
"devstral-small-2505",
"claude-sonnet-4-5-20250929",
"gpt-5.2-codex",
"gpt-5.2",
"MiniMax-M2.5",
"gemini-3-pro-preview",
"gemini-3-flash-preview",
"devstral-medium-2512",
"kimi-k2-0711-preview",
"qwen3-coder-480b",
];

View File

@@ -111,18 +111,15 @@ def get_supported_llm_models(config: OpenHandsConfig) -> list[str]:
# Add OpenHands provider models
openhands_models = [
'openhands/claude-sonnet-4-20250514',
'openhands/claude-sonnet-4-5-20250929',
'openhands/gpt-5-2025-08-07',
'openhands/gpt-5-mini-2025-08-07',
'openhands/claude-opus-4-20250514',
'openhands/claude-opus-4-5-20251101',
'openhands/gemini-2.5-pro',
'openhands/o3',
'openhands/o4-mini',
'openhands/devstral-small-2505',
'openhands/devstral-small-2507',
'openhands/devstral-medium-2507',
'openhands/claude-sonnet-4-5-20250929',
'openhands/gpt-5.2-codex',
'openhands/gpt-5.2',
'openhands/MiniMax-M2.5',
'openhands/gemini-3-pro-preview',
'openhands/gemini-3-flash-preview',
'openhands/deepseek-chat',
'openhands/devstral-medium-2512',
'openhands/kimi-k2-0711-preview',
'openhands/qwen3-coder-480b',
]