mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 18:20:33 +08:00
Merge pull request #543 from octo-patch/feature/upgrade-minimax-m3
feat: refresh MiniMax model identifiers in tests to M3 MiniMax-M3 is the current default on the MiniMax platform; refresh the model-id strings used in the capability/runtime tests and add M3/M2.7 assertions. Provider capability resolution is keyed on the 'minimax' prefix, so this is behavior-neutral (no production code changed). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -167,7 +167,7 @@ def test_build_openai_client_routes_github_copilot_backend_through_adapter(monke
|
||||
|
||||
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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user