Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/short-terms-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kilocode/types": patch
---

Add GLM-4.7 Flash model to recommended models list for Z.ai provider
36 changes: 36 additions & 0 deletions packages/types/src/providers/zai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,25 @@ 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,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Missing kilocode_change marker for Kilo-specific change

This updates upstream-shared model metadata without a kilocode_change marker. Adding a marker here helps reduce merge conflicts during upstream sync.

Suggested change
preferredIndex: 1,
preferredIndex: 1, // kilocode_change

},
// kilocode_change start
"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.",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUGGESTION: Consider aligning reasoning metadata with glm-4.7

glm-4.7 sets supportsReasoningEffort, reasoningEffort, and preserveReasoning. If glm-4.7-flash supports the same reasoning controls/behavior, adding those fields would keep UI/tooling consistent.

preferredIndex: 2,
},
// kilocode_change end
"glm-4-32b-0414-128k": {
maxTokens: 16_384,
contextWindow: 131_072,
Expand Down Expand Up @@ -285,7 +303,25 @@ 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,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Missing kilocode_change marker for Kilo-specific change

Same as the international list: this adds Kilo-specific metadata in an upstream-shared file without a kilocode_change marker.

Suggested change
preferredIndex: 1,
preferredIndex: 1, // kilocode_change

},
// kilocode_change start
"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,
},
// kilocode_change end
} as const satisfies Record<string, ModelInfo>

export const ZAI_DEFAULT_TEMPERATURE = 0.6
Expand Down
Loading