From 3ef5c482919c43682a1dda037bb8296a5fc8bb21 Mon Sep 17 00:00:00 2001 From: Alvin Ward Date: Wed, 17 Dec 2025 16:17:48 +0200 Subject: [PATCH 1/2] feat: add GLM-4.6V model support for z.ai provider --- packages/types/src/providers/zai.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/packages/types/src/providers/zai.ts b/packages/types/src/providers/zai.ts index e21fcc698bf..d597e7b1abf 100644 --- a/packages/types/src/providers/zai.ts +++ b/packages/types/src/providers/zai.ts @@ -100,6 +100,32 @@ export const internationalZAiModels = { description: "GLM-4.6 is Zhipu's newest model with an extended context window of up to 200k tokens, providing enhanced capabilities for processing longer documents and conversations.", }, + "glm-4.6v": { + maxTokens: 98_304, + contextWindow: 131_072, + supportsImages: true, + supportsPromptCache: true, + supportsNativeTools: true, + inputPrice: 0.3, + outputPrice: 0.9, + cacheWritesPrice: 0, + cacheReadsPrice: 0.05, + description: + "GLM-4.6V is Z.AI's multimodal visual reasoning model (image/video/text/file input), optimized for GUI tasks, grounding, document/video understanding, native function calling capabilities.", + }, + "glm-4.6v-flash": { + maxTokens: 98_304, + contextWindow: 131_072, + supportsImages: true, + supportsPromptCache: true, + supportsNativeTools: true, + inputPrice: 0, + outputPrice: 0, + cacheWritesPrice: 0, + cacheReadsPrice: 0, + description: + "GLM-4.6V-Flash is a free, high-speed multimodal model with visual reasoning capabilities, excellent for reasoning, coding, and agentic tasks.", + }, "glm-4-32b-0414-128k": { maxTokens: 98_304, contextWindow: 131_072, From 782347e9ed6cbaf42c88285cb8576801cd178d96 Mon Sep 17 00:00:00 2001 From: Kevin van Dijk Date: Thu, 18 Dec 2025 15:05:09 +0100 Subject: [PATCH 2/2] Add markers and changeset --- .changeset/all-things-cough.md | 5 +++++ packages/types/src/providers/zai.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/all-things-cough.md diff --git a/.changeset/all-things-cough.md b/.changeset/all-things-cough.md new file mode 100644 index 00000000000..269427d0ab5 --- /dev/null +++ b/.changeset/all-things-cough.md @@ -0,0 +1,5 @@ +--- +"kilo-code": patch +--- + +Add GLM-4.6V model support for z.ai provider diff --git a/packages/types/src/providers/zai.ts b/packages/types/src/providers/zai.ts index d597e7b1abf..9720d663390 100644 --- a/packages/types/src/providers/zai.ts +++ b/packages/types/src/providers/zai.ts @@ -100,6 +100,7 @@ export const internationalZAiModels = { description: "GLM-4.6 is Zhipu's newest model with an extended context window of up to 200k tokens, providing enhanced capabilities for processing longer documents and conversations.", }, + // kilocode_change start "glm-4.6v": { maxTokens: 98_304, contextWindow: 131_072, @@ -126,6 +127,7 @@ export const internationalZAiModels = { description: "GLM-4.6V-Flash is a free, high-speed multimodal model with visual reasoning capabilities, excellent for reasoning, coding, and agentic tasks.", }, + // kilocode_change end "glm-4-32b-0414-128k": { maxTokens: 98_304, contextWindow: 131_072,