From c53a296df1935639780ed1a34d54009c3a4e071d Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Tue, 31 Mar 2026 01:54:13 -0700 Subject: [PATCH] feat: add MiniMax M2.7 to hermes model picker and opencode-go (#4208) Add MiniMax-M2.7 and M2.7-highspeed to _PROVIDER_MODELS for minimax and minimax-cn providers in main.py so hermes model shows them. Update opencode-go bare ID from m2.5 to m2.7 in models.py. Salvaged from PR #4197 by octo-patch. --- hermes_cli/main.py | 4 ++++ hermes_cli/models.py | 2 +- tests/test_setup_model_selection.py | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hermes_cli/main.py b/hermes_cli/main.py index f2845869a..19a0ac49f 100644 --- a/hermes_cli/main.py +++ b/hermes_cli/main.py @@ -1591,11 +1591,15 @@ _PROVIDER_MODELS = { "kimi-k2-0905-preview", ], "minimax": [ + "MiniMax-M2.7", + "MiniMax-M2.7-highspeed", "MiniMax-M2.5", "MiniMax-M2.5-highspeed", "MiniMax-M2.1", ], "minimax-cn": [ + "MiniMax-M2.7", + "MiniMax-M2.7-highspeed", "MiniMax-M2.5", "MiniMax-M2.5-highspeed", "MiniMax-M2.1", diff --git a/hermes_cli/models.py b/hermes_cli/models.py index 5e1077837..c8bd106b6 100644 --- a/hermes_cli/models.py +++ b/hermes_cli/models.py @@ -191,7 +191,7 @@ _PROVIDER_MODELS: dict[str, list[str]] = { "opencode-go": [ "glm-5", "kimi-k2.5", - "minimax-m2.5", + "minimax-m2.7", ], "ai-gateway": [ "anthropic/claude-opus-4.6", diff --git a/tests/test_setup_model_selection.py b/tests/test_setup_model_selection.py index 514a43045..3a02ebbf0 100644 --- a/tests/test_setup_model_selection.py +++ b/tests/test_setup_model_selection.py @@ -32,8 +32,8 @@ class TestSetupProviderModelSelection: @pytest.mark.parametrize("provider_id,expected_defaults", [ ("zai", ["glm-5", "glm-4.7", "glm-4.5", "glm-4.5-flash"]), ("kimi-coding", ["kimi-k2.5", "kimi-k2-thinking", "kimi-k2-turbo-preview"]), - ("minimax", ["MiniMax-M2.5", "MiniMax-M2.5-highspeed", "MiniMax-M2.1"]), - ("minimax-cn", ["MiniMax-M2.5", "MiniMax-M2.5-highspeed", "MiniMax-M2.1"]), + ("minimax", ["MiniMax-M2.7", "MiniMax-M2.7-highspeed", "MiniMax-M2.5", "MiniMax-M2.5-highspeed", "MiniMax-M2.1"]), + ("minimax-cn", ["MiniMax-M2.7", "MiniMax-M2.7-highspeed", "MiniMax-M2.5", "MiniMax-M2.5-highspeed", "MiniMax-M2.1"]), ]) @patch("hermes_cli.models.fetch_api_models", return_value=[]) @patch("hermes_cli.config.get_env_value", return_value="fake-key")