From 46c664ffd9b696b412588fc1bcf75d5c3be21f56 Mon Sep 17 00:00:00 2001 From: pefontana Date: Mon, 20 Apr 2026 16:39:07 -0300 Subject: [PATCH 1/2] feat(models): add kimi-k2.6 to opencode-zen/go, alibaba, and HuggingFace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PRs #13148 and #13152 landed kimi-k2.6 on OpenRouter, Nous, NVIDIA NIM, kimi-coding, kimi-coding-cn, and moonshot. This fills in the remaining static catalogs (opencode-zen, opencode-go, alibaba, huggingface) plus the 256K context-length entry for the HuggingFace variant. Temperature handling is already covered by PR #13157's OMIT_TEMPERATURE sentinel + _is_kimi_model() prefix check, which matches all kimi-* IDs automatically — no per-model entries needed. --- agent/model_metadata.py | 1 + hermes_cli/models.py | 4 ++++ hermes_cli/setup.py | 7 ++++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/agent/model_metadata.py b/agent/model_metadata.py index 2b39be989b17..ba2ae6f515e5 100644 --- a/agent/model_metadata.py +++ b/agent/model_metadata.py @@ -167,6 +167,7 @@ def _strip_provider_prefix(model: str) -> str: "Qwen/Qwen3.5-397B-A17B": 131072, "Qwen/Qwen3.5-35B-A3B": 131072, "deepseek-ai/DeepSeek-V3.2": 65536, + "moonshotai/Kimi-K2.6": 262144, "moonshotai/Kimi-K2.5": 262144, "moonshotai/Kimi-K2-Thinking": 262144, "MiniMaxAI/MiniMax-M2.5": 204800, diff --git a/hermes_cli/models.py b/hermes_cli/models.py index eb5fe678cc05..0af97287d5d7 100644 --- a/hermes_cli/models.py +++ b/hermes_cli/models.py @@ -230,6 +230,7 @@ def _codex_curated_models() -> list[str]: "trinity-mini", ], "opencode-zen": [ + "kimi-k2.6", "kimi-k2.5", "gpt-5.4-pro", "gpt-5.4", @@ -267,6 +268,7 @@ def _codex_curated_models() -> list[str]: "big-pickle", ], "opencode-go": [ + "kimi-k2.6", "kimi-k2.5", "glm-5.1", "glm-5", @@ -302,6 +304,7 @@ def _codex_curated_models() -> list[str]: # to https://dashscope-intl.aliyuncs.com/compatible-mode/v1 (OpenAI-compat) # or https://dashscope-intl.aliyuncs.com/apps/anthropic (Anthropic-compat). "alibaba": [ + "kimi-k2.6", "kimi-k2.5", "qwen3.5-plus", "qwen3-coder-plus", @@ -313,6 +316,7 @@ def _codex_curated_models() -> list[str]: ], # Curated HF model list — only agentic models that map to OpenRouter defaults. "huggingface": [ + "moonshotai/Kimi-K2.6", "moonshotai/Kimi-K2.5", "Qwen/Qwen3.5-397B-A17B", "Qwen/Qwen3.5-35B-A3B", diff --git a/hermes_cli/setup.py b/hermes_cli/setup.py index 1fcd88dff0eb..03b26972f715 100644 --- a/hermes_cli/setup.py +++ b/hermes_cli/setup.py @@ -100,12 +100,13 @@ def _supports_same_provider_pool_setup(provider: str) -> bool: "minimax-cn": ["MiniMax-M2.7", "MiniMax-M2.5", "MiniMax-M2.1", "MiniMax-M2"], "ai-gateway": ["anthropic/claude-opus-4.6", "anthropic/claude-sonnet-4.6", "openai/gpt-5", "google/gemini-3-flash"], "kilocode": ["anthropic/claude-opus-4.6", "anthropic/claude-sonnet-4.6", "openai/gpt-5.4", "google/gemini-3-pro-preview", "google/gemini-3-flash-preview"], - "opencode-zen": ["gpt-5.4", "gpt-5.3-codex", "claude-sonnet-4-6", "gemini-3-flash", "glm-5", "kimi-k2.5", "minimax-m2.7"], - "opencode-go": ["glm-5.1", "glm-5", "kimi-k2.5", "mimo-v2-pro", "mimo-v2-omni", "minimax-m2.5", "minimax-m2.7"], + "opencode-zen": ["gpt-5.4", "gpt-5.3-codex", "claude-sonnet-4-6", "gemini-3-flash", "glm-5", "kimi-k2.6", "kimi-k2.5", "minimax-m2.7"], + "opencode-go": ["glm-5.1", "glm-5", "kimi-k2.6", "kimi-k2.5", "mimo-v2-pro", "mimo-v2-omni", "minimax-m2.5", "minimax-m2.7"], "huggingface": [ "Qwen/Qwen3.5-397B-A17B", "Qwen/Qwen3-235B-A22B-Thinking-2507", "Qwen/Qwen3-Coder-480B-A35B-Instruct", "deepseek-ai/DeepSeek-R1-0528", - "deepseek-ai/DeepSeek-V3.2", "moonshotai/Kimi-K2.5", + "deepseek-ai/DeepSeek-V3.2", "moonshotai/Kimi-K2.6", + "moonshotai/Kimi-K2.5", ], } From 30a92853e5b42e400da3d56cd52b44d872c27ca7 Mon Sep 17 00:00:00 2001 From: pefontana Date: Mon, 20 Apr 2026 16:39:18 -0300 Subject: [PATCH 2/2] test(opencode-go): include kimi-k2.6 in authenticated provider model list --- tests/hermes_cli/test_opencode_go_in_model_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hermes_cli/test_opencode_go_in_model_list.py b/tests/hermes_cli/test_opencode_go_in_model_list.py index a84701f09c76..647ee2bee870 100644 --- a/tests/hermes_cli/test_opencode_go_in_model_list.py +++ b/tests/hermes_cli/test_opencode_go_in_model_list.py @@ -15,7 +15,7 @@ def test_opencode_go_appears_when_api_key_set(): opencode_go = next((p for p in providers if p["slug"] == "opencode-go"), None) assert opencode_go is not None, "opencode-go should appear when OPENCODE_GO_API_KEY is set" - assert opencode_go["models"] == ["kimi-k2.5", "glm-5.1", "glm-5", "mimo-v2-pro", "mimo-v2-omni", "minimax-m2.7", "minimax-m2.5"] + assert opencode_go["models"] == ["kimi-k2.6", "kimi-k2.5", "glm-5.1", "glm-5", "mimo-v2-pro", "mimo-v2-omni", "minimax-m2.7", "minimax-m2.5"] # opencode-go can appear as "built-in" (from PROVIDER_TO_MODELS_DEV when # models.dev is reachable) or "hermes" (from HERMES_OVERLAYS fallback when # the API is unavailable, e.g. in CI).