From dbf1f85c92885d9120fb10e5424de23c088c35b1 Mon Sep 17 00:00:00 2001 From: octo-patch Date: Wed, 3 Jun 2026 22:06:38 +0800 Subject: [PATCH] feat: upgrade MiniMax default model to M3 - Update sample test models from MiniMax-M2 / MiniMax-M2.7 to MiniMax-M3 - Extend capabilities test to cover M3 alongside M2.7 / M2.7-highspeed - M3 introduces a 512K context window, 128K max output, and image input support - Older models (M2.5/M2.1/M2/M1) are no longer first-class targets --- tests/core/test_agentic_client_provider_kwargs.py | 2 +- tests/services/config/test_provider_runtime.py | 2 +- tests/services/llm/test_capabilities.py | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/core/test_agentic_client_provider_kwargs.py b/tests/core/test_agentic_client_provider_kwargs.py index b9bebe53a..aced6578f 100644 --- a/tests/core/test_agentic_client_provider_kwargs.py +++ b/tests/core/test_agentic_client_provider_kwargs.py @@ -117,7 +117,7 @@ def test_build_openai_client_routes_anthropic_backend_through_adapter(monkeypatc def test_anthropic_backend_can_use_native_tool_calling() -> None: assert can_use_native_tool_calling(binding="custom_anthropic", model="claude-test") is True - assert can_use_native_tool_calling(binding="minimax_anthropic", model="MiniMax-M2") is True + assert can_use_native_tool_calling(binding="minimax_anthropic", model="MiniMax-M3") is True def test_custom_qwen_can_use_native_tool_calling() -> None: diff --git a/tests/services/config/test_provider_runtime.py b/tests/services/config/test_provider_runtime.py index 30dcf55dc..bcb072abe 100644 --- a/tests/services/config/test_provider_runtime.py +++ b/tests/services/config/test_provider_runtime.py @@ -143,7 +143,7 @@ def test_llm_minimax_binding_uses_minimaxi_endpoint() -> None: "api_key": "minimax-key", "api_version": "", "extra_headers": {}, - "models": [{"id": "llm-m", "name": "m", "model": "MiniMax-M2.7"}], + "models": [{"id": "llm-m", "name": "m", "model": "MiniMax-M3"}], } ) resolved = resolve_llm_runtime_config(catalog=catalog) diff --git a/tests/services/llm/test_capabilities.py b/tests/services/llm/test_capabilities.py index 93296fbc5..627f8820f 100644 --- a/tests/services/llm/test_capabilities.py +++ b/tests/services/llm/test_capabilities.py @@ -61,6 +61,12 @@ def test_moonshot_vision_models() -> None: def test_minimax_openai_compat_supports_tools_without_response_format() -> None: """MiniMax M-series models support OpenAI-compatible tool calls, but the provider still should not receive json_object response_format.""" + # M3 is the current default model (512K context, image input support). + assert supports_tools("minimax", "MiniMax-M3") is True + assert supports_response_format("minimax", "MiniMax-M3") is False + # M2.7 and M2.7-highspeed remain as alternatives. + assert supports_tools("minimax", "MiniMax-M2.7") is True + assert supports_response_format("minimax", "MiniMax-M2.7") is False assert supports_tools("minimax", "MiniMax-M2.7-highspeed") is True assert supports_response_format("minimax", "MiniMax-M2.7-highspeed") is False