Skip to content

Conversation

@kiloconnect
Copy link
Contributor

@kiloconnect kiloconnect bot commented Jan 19, 2026

Adds the GLM-4.7 Flash model to the recommended models list for the Z.ai provider. The model is placed right after GLM-4.7 in the recommended list.

Changes made:

  • Added model definition with in both and
  • Added to to make it a recommended model as well

The model is free (input/output prices set to 0) and includes built-in thinking capabilities.


Built for josh by Kilo for Slack

@changeset-bot
Copy link

changeset-bot bot commented Jan 19, 2026

🦋 Changeset detected

Latest commit: 4d5298f

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kiloconnect
Copy link
Contributor Author

kiloconnect bot commented Jan 19, 2026

Code Review Summary

Status: 3 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 2
SUGGESTION 1

Fix these issues in Kilo Cloud

Issue Details (click to expand)

WARNING

File Line Issue
packages/types/src/providers/zai.ts 157 Missing kilocode_change marker for Kilo-specific preferredIndex change (international models)
packages/types/src/providers/zai.ts 306 Missing kilocode_change marker for Kilo-specific preferredIndex change (mainland models)

SUGGESTION

File Line Issue
packages/types/src/providers/zai.ts 172 Consider aligning reasoning metadata for glm-4.7-flash with glm-4.7 if supported
Other Observations (not in diff)

Issues found in unchanged code that cannot receive inline comments:

None.

Files Reviewed (2 files)

@timoteo7
Copy link

Would this be a duplicate of some other PR?
Or does this model have some problem that prevents it from being added?

@lambertjosh lambertjosh reopened this Jan 23, 2026
@lambertjosh
Copy link
Contributor

@timoteo7 - sorry it should not have been closed. 4.7 was added already but not 4.7-flash. This needs kilocode_change markers though. There is also a broader PR over at Roo that may be good to pick instead. RooCodeInc/Roo-Code#10860, once it is merged.

@kevinvandijk
Copy link
Collaborator

Added the markers and will merge this one. We'll pull the from Roo on top of this

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

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.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants