From 28a46d17fe91f13ec0687bb6834b31e2ec454687 Mon Sep 17 00:00:00 2001 From: "kiloconnect[bot]" <240665456+kiloconnect[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 19:50:30 +0000 Subject: [PATCH 1/2] Add GLM-4.7 Flash model to recommended models list for Z.ai provider --- .changeset/short-terms-dream.md | 5 +++++ packages/types/src/providers/zai.ts | 30 +++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .changeset/short-terms-dream.md diff --git a/.changeset/short-terms-dream.md b/.changeset/short-terms-dream.md new file mode 100644 index 00000000000..73a97c5e452 --- /dev/null +++ b/.changeset/short-terms-dream.md @@ -0,0 +1,5 @@ +--- +"@kilocode/types": patch +--- + +Add GLM-4.7 Flash model to recommended models list for Z.ai provider diff --git a/packages/types/src/providers/zai.ts b/packages/types/src/providers/zai.ts index 0e98fb62923..2165ea759b0 100644 --- a/packages/types/src/providers/zai.ts +++ b/packages/types/src/providers/zai.ts @@ -154,6 +154,21 @@ export const internationalZAiModels = { cacheReadsPrice: 0.11, description: "GLM-4.7 is Zhipu's latest model with built-in thinking capabilities enabled by default. It provides enhanced reasoning for complex tasks while maintaining fast response times.", + preferredIndex: 1, + }, + "glm-4.7-flash": { + maxTokens: 16_384, + contextWindow: 200_000, + supportsImages: false, + supportsPromptCache: true, + supportsNativeTools: true, + defaultToolProtocol: "native", + inputPrice: 0, + outputPrice: 0, + cacheWritesPrice: 0, + cacheReadsPrice: 0, + description: "GLM-4.7-Flash is a free, high-speed model with built-in thinking capabilities, excellent for reasoning, coding, and agentic tasks.", + preferredIndex: 2, }, "glm-4-32b-0414-128k": { maxTokens: 16_384, @@ -285,6 +300,21 @@ export const mainlandZAiModels = { cacheReadsPrice: 0.057, description: "GLM-4.7 is Zhipu's latest model with built-in thinking capabilities enabled by default. It provides enhanced reasoning for complex tasks while maintaining fast response times.", + preferredIndex: 1, + }, + "glm-4.7-flash": { + maxTokens: 16_384, + contextWindow: 204_800, + supportsImages: false, + supportsPromptCache: true, + supportsNativeTools: true, + defaultToolProtocol: "native", + inputPrice: 0, + outputPrice: 0, + cacheWritesPrice: 0, + cacheReadsPrice: 0, + description: "GLM-4.7-Flash is a free, high-speed model with built-in thinking capabilities, excellent for reasoning, coding, and agentic tasks.", + preferredIndex: 2, }, } as const satisfies Record From 545af461586d8a7a4ce076391810dbdb79f67808 Mon Sep 17 00:00:00 2001 From: Kevin van Dijk Date: Wed, 28 Jan 2026 18:17:19 +0100 Subject: [PATCH 2/2] Add change markers --- packages/types/src/providers/zai.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/types/src/providers/zai.ts b/packages/types/src/providers/zai.ts index 2165ea759b0..8f6eb8774c7 100644 --- a/packages/types/src/providers/zai.ts +++ b/packages/types/src/providers/zai.ts @@ -156,6 +156,7 @@ export const internationalZAiModels = { "GLM-4.7 is Zhipu's latest model with built-in thinking capabilities enabled by default. It provides enhanced reasoning for complex tasks while maintaining fast response times.", preferredIndex: 1, }, + // kilocode_change start "glm-4.7-flash": { maxTokens: 16_384, contextWindow: 200_000, @@ -167,9 +168,11 @@ export const internationalZAiModels = { outputPrice: 0, cacheWritesPrice: 0, cacheReadsPrice: 0, - description: "GLM-4.7-Flash is a free, high-speed model with built-in thinking capabilities, excellent for reasoning, coding, and agentic tasks.", + description: + "GLM-4.7-Flash is a free, high-speed model with built-in thinking capabilities, excellent for reasoning, coding, and agentic tasks.", preferredIndex: 2, }, + // kilocode_change end "glm-4-32b-0414-128k": { maxTokens: 16_384, contextWindow: 131_072, @@ -302,6 +305,7 @@ export const mainlandZAiModels = { "GLM-4.7 is Zhipu's latest model with built-in thinking capabilities enabled by default. It provides enhanced reasoning for complex tasks while maintaining fast response times.", preferredIndex: 1, }, + // kilocode_change start "glm-4.7-flash": { maxTokens: 16_384, contextWindow: 204_800, @@ -313,9 +317,11 @@ export const mainlandZAiModels = { outputPrice: 0, cacheWritesPrice: 0, cacheReadsPrice: 0, - description: "GLM-4.7-Flash is a free, high-speed model with built-in thinking capabilities, excellent for reasoning, coding, and agentic tasks.", + description: + "GLM-4.7-Flash is a free, high-speed model with built-in thinking capabilities, excellent for reasoning, coding, and agentic tasks.", preferredIndex: 2, }, + // kilocode_change end } as const satisfies Record export const ZAI_DEFAULT_TEMPERATURE = 0.6