From c190b3f7095ee791b7fb98f30744fc755e4bab63 Mon Sep 17 00:00:00 2001 From: Clint Date: Thu, 5 Feb 2026 19:12:05 -0800 Subject: [PATCH] feat: add GLM-4.7-Flash to OpenCode provider MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same model definition as zhipuai/glm-4.7-flash — free, reasoning-capable, 200K context flash model from Zhipu AI. Co-Authored-By: Claude Opus 4.6 --- providers/opencode/models/glm-4.7-flash.toml | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 providers/opencode/models/glm-4.7-flash.toml diff --git a/providers/opencode/models/glm-4.7-flash.toml b/providers/opencode/models/glm-4.7-flash.toml new file mode 100644 index 000000000..7af50a313 --- /dev/null +++ b/providers/opencode/models/glm-4.7-flash.toml @@ -0,0 +1,24 @@ +name = "GLM-4.7-Flash" +family = "glm-flash" +release_date = "2026-01-19" +last_updated = "2026-01-19" +attachment = false +reasoning = true +temperature = true +tool_call = true +knowledge = "2025-04" +open_weights = true + +[cost] +input = 0 +output = 0 +cache_read = 0 +cache_write = 0 + +[limit] +context = 200_000 +output = 131_072 + +[modalities] +input = ["text"] +output = ["text"]