The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
feat(models): add GLM-5.3-Flash to z.ai and OpenCode Go pickers
Adolaniuma9611f3c6f7f
diff --git a/hermes_cli/auth.py b/hermes_cli/auth.pyindex 2e462772c54..8d3a3d13ae6 100644--- a/hermes_cli/auth.py+++ b/hermes_cli/auth.py@@ -801,8 +801,8 @@ ZAI_ENDPOINTS = [# (id, base_url, probe_models, label)("global", "https://api.z.ai/api/paas/v4", ["glm-5"], "Global"),("cn", "https://open.bigmodel.cn/api/paas/v4", ["glm-5"], "China"),- ("coding-global", "https://api.z.ai/api/coding/paas/v4", ["glm-5.3", "glm-5.2", "glm-5.1", "glm-5v-turbo", "glm-4.7"], "Global (Coding Plan)"),- ("coding-cn", "https://open.bigmodel.cn/api/coding/paas/v4", ["glm-5.3", "glm-5.2", "glm-5.1", "glm-5v-turbo", "glm-4.7"], "China (Coding Plan)"),+ ("coding-global", "https://api.z.ai/api/coding/paas/v4", ["glm-5.3", "glm-5.3-flash", "glm-5.2", "glm-5.1", "glm-5v-turbo", "glm-4.7"], "Global (Coding Plan)"),+ ("coding-cn", "https://open.bigmodel.cn/api/coding/paas/v4", ["glm-5.3", "glm-5.3-flash", "glm-5.2", "glm-5.1", "glm-5v-turbo", "glm-4.7"], "China (Coding Plan)"),]diff --git a/hermes_cli/models.py b/hermes_cli/models.pyindex 6f3836c20fa..bd79bde1382 100644--- a/hermes_cli/models.py+++ b/hermes_cli/models.py@@ -373,6 +373,7 @@ _PROVIDER_MODELS: dict[str, list[str]] = {],"zai": ["glm-5.3",+ "glm-5.3-flash","glm-5.2","glm-5.1","glm-5",@@ -544,6 +545,7 @@ _PROVIDER_MODELS: dict[str, list[str]] = {"minimax-m2.7","minimax-m2.5","glm-5.3",+ "glm-5.3-flash","glm-5.2","glm-5.1","glm-5",@@ -586,6 +588,7 @@ _PROVIDER_MODELS: dict[str, list[str]] = {"gpt-5.6-luna","grok-4.5","glm-5.3",+ "glm-5.3-flash","glm-5.2","glm-5.1","glm-5",diff --git a/hermes_cli/setup.py b/hermes_cli/setup.pyindex ff7e086d5f8..b68849d3486 100644--- a/hermes_cli/setup.py+++ b/hermes_cli/setup.py@@ -102,7 +102,7 @@ _DEFAULT_PROVIDER_MODELS = {"google/gemini-3-flash-preview", "google/gemini-3.1-flash-lite-preview","google/gemini-2.5-pro", "google/gemini-2.5-flash",],- "zai": ["glm-5.2", "glm-5.1", "glm-5", "glm-4.7", "glm-4.5", "glm-4.5-flash"],+ "zai": ["glm-5.3", "glm-5.3-flash", "glm-5.2", "glm-5.1", "glm-5", "glm-4.7", "glm-4.5", "glm-4.5-flash"],"kimi-coding": ["kimi-k3", "kimi-k2.6", "kimi-k2.5", "kimi-k2-thinking", "kimi-k2-turbo-preview"],"kimi-coding-cn": ["kimi-k3", "kimi-k2.6", "kimi-k2.5", "kimi-k2-thinking", "kimi-k2-turbo-preview"],"stepfun": ["step-3.5-flash", "step-3.5-flash-2603"],@@ -113,7 +113,7 @@ _DEFAULT_PROVIDER_MODELS = {"kilocode": ["anthropic/claude-sonnet-5", "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": ["x-preview-f-free", "gpt-5.6-sol", "gpt-5.4", "gpt-5.3-codex", "claude-opus-5", "claude-sonnet-5", "gemini-3.7-flash", "glm-5.2", "kimi-k3", "minimax-m3"],"opencode-free": ["x-preview-f-free", "hy3-free", "laguna-s-2.1-free", "nemotron-3-ultra-free", "nemotron-3.5-lightning-free", "muse-spark-1.2-contributor-free"],- "opencode-go": ["kimi-k3", "kimi-k2.7-code", "kimi-k2.6", "gpt-5.6-luna", "grok-4.5", "glm-5.3", "glm-5.2", "mimo-v2.5-pro", "mimo-v2.5", "minimax-m3", "minimax-m2.7", "qwen3.8-max", "qwen3.7-max", "deepseek-v4-pro", "hy3"],+ "opencode-go": ["kimi-k3", "kimi-k2.7-code", "kimi-k2.6", "gpt-5.6-luna", "grok-4.5", "glm-5.3", "glm-5.3-flash", "glm-5.2", "mimo-v2.5-pro", "mimo-v2.5", "minimax-m3", "minimax-m2.7", "qwen3.8-max", "qwen3.7-max", "deepseek-v4-pro", "hy3"],"huggingface": ["Qwen/Qwen3.5-397B-A17B", "Qwen/Qwen3-235B-A22B-Thinking-2507","Qwen/Qwen3-Coder-480B-A35B-Instruct", "deepseek-ai/DeepSeek-R1-0528",diff --git a/tests/hermes_cli/test_model_validation.py b/tests/hermes_cli/test_model_validation.pyindex 51387a0bf01..4ea78b63cb2 100644--- a/tests/hermes_cli/test_model_validation.py+++ b/tests/hermes_cli/test_model_validation.py@@ -299,6 +299,7 @@ class TestCopilotNormalization:# New Go models keep their family routing: GLM chat/completions,# Qwen anthropic_messages.assert opencode_model_api_mode("opencode-go", "glm-5.3") == "chat_completions"+ assert opencode_model_api_mode("opencode-go", "glm-5.3-flash") == "chat_completions"assert opencode_model_api_mode("opencode-go", "qwen3.8-max") == "anthropic_messages"# Custom opencode-go-* providers route according to opencode-go rules# (family-prefix providers, issue #85589).