From bfcc6ee6f1ee18d0c4c852a65c49b25f87ee40dc Mon Sep 17 00:00:00 2001 From: GokayAI <60583610+gokay-ai@users.noreply.github.com> Date: Sat, 17 Oct 2026 02:31:54 +0000 Subject: [PATCH] fix(providers): add missing GLM models to OpenCode Go and Zen (#12057) Co-authored-by: Filip Kujawa --- .../declarative/definitions/opencode_go.json | 38 +++++++++++++++---- .../declarative/definitions/opencode_zen.json | 12 +++--- 2 files changed, 36 insertions(+), 14 deletions(-) diff --git a/crates/goose-providers/src/declarative/definitions/opencode_go.json b/crates/goose-providers/src/declarative/definitions/opencode_go.json index a66e48309..75ae70fe3 100644 --- a/crates/goose-providers/src/declarative/definitions/opencode_go.json +++ b/crates/goose-providers/src/declarative/definitions/opencode_go.json @@ -11,20 +11,42 @@ "model_doc_link": "https://opencode.ai/docs/zen", "preserves_thinking": true, "models": [ + {"name": "kimi-k3", "context_limit": 1048576}, + {"name": "kimi-k2.7-code", "context_limit": 262144}, {"name": "kimi-k2.6", "context_limit": 262144}, - {"name": "kimi-k2.5", "context_limit": 262144}, - {"name": "deepseek-v4-flash", "context_limit": 1000000}, + {"name": "deepseek-v4.1-flash", "context_limit": 1000000}, {"name": "deepseek-v4-pro", "context_limit": 1000000}, + {"name": "glm-5.3-flash", "context_limit": 1000000}, + {"name": "glm-5.3", "context_limit": 1000000}, + {"name": "glm-5.2", "context_limit": 1000000}, {"name": "glm-5.1", "context_limit": 204800}, - {"name": "glm-5", "context_limit": 204800}, + {"name": "mimo-v2.6-pro", "context_limit": 1048576}, + {"name": "mimo-v2.6-flash", "context_limit": 1048576}, {"name": "mimo-v2.5-pro", "context_limit": 1048576}, - {"name": "mimo-v2.5", "context_limit": 262144}, - {"name": "mimo-v2-pro", "context_limit": 1048576}, - {"name": "mimo-v2-omni", "context_limit": 262144}, + {"name": "mimo-v2.5", "context_limit": 1000000}, + {"name": "minimax-m3", "context_limit": 1000000}, {"name": "minimax-m2.7", "context_limit": 204800}, {"name": "minimax-m2.5", "context_limit": 204800}, - {"name": "qwen3.6-plus", "context_limit": 262144}, - {"name": "qwen3.5-plus", "context_limit": 262144} + {"name": "qwen3.8-max", "context_limit": 1000000}, + {"name": "qwen3.8-flash", "context_limit": 1000000}, + {"name": "qwen3.7-max", "context_limit": 1000000}, + {"name": "qwen3.7-plus", "context_limit": 1000000}, + {"name": "qwen3.6-plus", "context_limit": 1000000}, + {"name": "gpt-6-luna", "context_limit": 1050000}, + {"name": "gpt-5.6-luna", "context_limit": 1050000}, + {"name": "claude-haiku-5-5", "context_limit": 1000000}, + {"name": "gemini-4-argon-contributor", "context_limit": 1048576}, + {"name": "grok-4.7", "context_limit": 500000}, + {"name": "grok-4.6", "context_limit": 500000}, + {"name": "hy4-preview", "context_limit": 1024000}, + {"name": "hy3", "context_limit": 256000}, + {"name": "longcat-2.5-preview-free", "context_limit": 1000000}, + {"name": "longcat-2.0", "context_limit": 1000000}, + {"name": "muse-spark-1.3-contributor", "context_limit": 1048576}, + {"name": "muse-spark-1.2-contributor", "context_limit": 1048576}, + {"name": "step-5-preview", "context_limit": 1000000}, + {"name": "space-bunny", "context_limit": 1048576}, + {"name": "beam-free", "context_limit": 1048576} ], "supports_streaming": true } diff --git a/crates/goose-providers/src/declarative/definitions/opencode_zen.json b/crates/goose-providers/src/declarative/definitions/opencode_zen.json index d9ace18ad..e17610571 100644 --- a/crates/goose-providers/src/declarative/definitions/opencode_zen.json +++ b/crates/goose-providers/src/declarative/definitions/opencode_zen.json @@ -10,19 +10,19 @@ "model_doc_link": "https://opencode.ai/docs/zen", "preserves_thinking": true, "models": [ - {"name": "kimi-k3", "context_limit": 262144}, + {"name": "kimi-k3", "context_limit": 1048576}, {"name": "kimi-k2.7-code", "context_limit": 262144}, {"name": "kimi-k2.6", "context_limit": 262144}, {"name": "kimi-k2.5", "context_limit": 262144}, - {"name": "glm-5.2", "context_limit": 204800}, + {"name": "glm-5.3-flash", "context_limit": 1000000}, + {"name": "glm-5.3", "context_limit": 1000000}, + {"name": "glm-5.2", "context_limit": 1000000}, {"name": "glm-5.1", "context_limit": 204800}, {"name": "deepseek-v4-pro", "context_limit": 1000000}, {"name": "deepseek-v4-flash", "context_limit": 1000000}, - {"name": "deepseek-v4-flash-free", "context_limit": 1000000}, - {"name": "minimax-m3", "context_limit": 204800}, + {"name": "minimax-m3", "context_limit": 512000}, {"name": "minimax-m2.7", "context_limit": 204800}, - {"name": "minimax-m2.5", "context_limit": 204800}, - {"name": "mimo-v2.5-free", "context_limit": 262144} + {"name": "minimax-m2.5", "context_limit": 204800} ], "supports_streaming": true }