Skip to content

Commit 0f18fe5

Browse files
authored
Merge pull request #4530 from alvinward/feat/add-glm-4.6V-support
feat: add GLM-4.6V model support for z.ai provider
2 parents 389a7eb + 782347e commit 0f18fe5

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.changeset/all-things-cough.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"kilo-code": patch
3+
---
4+
5+
Add GLM-4.6V model support for z.ai provider

packages/types/src/providers/zai.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,34 @@ export const internationalZAiModels = {
100100
description:
101101
"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.",
102102
},
103+
// kilocode_change start
104+
"glm-4.6v": {
105+
maxTokens: 98_304,
106+
contextWindow: 131_072,
107+
supportsImages: true,
108+
supportsPromptCache: true,
109+
supportsNativeTools: true,
110+
inputPrice: 0.3,
111+
outputPrice: 0.9,
112+
cacheWritesPrice: 0,
113+
cacheReadsPrice: 0.05,
114+
description:
115+
"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.",
116+
},
117+
"glm-4.6v-flash": {
118+
maxTokens: 98_304,
119+
contextWindow: 131_072,
120+
supportsImages: true,
121+
supportsPromptCache: true,
122+
supportsNativeTools: true,
123+
inputPrice: 0,
124+
outputPrice: 0,
125+
cacheWritesPrice: 0,
126+
cacheReadsPrice: 0,
127+
description:
128+
"GLM-4.6V-Flash is a free, high-speed multimodal model with visual reasoning capabilities, excellent for reasoning, coding, and agentic tasks.",
129+
},
130+
// kilocode_change end
103131
"glm-4-32b-0414-128k": {
104132
maxTokens: 98_304,
105133
contextWindow: 131_072,

0 commit comments

Comments
 (0)