feat: add GLM-4.7-Flash and FlashX models - #1483
Merged
Merged
Conversation
Add two new Z.ai models: - GLM-4.7-FlashX: Lightweight, high-speed variant ($0.07/1M input, $0.4/1M output) - GLM-4.7-Flash: Free, lightweight variant Both models have 200K context, 128K max output, and support reasoning, tools, and JSON output. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
WalkthroughAdds two GLM-4.7 variants (glm-4.7-flashx and glm-4.7-flash) to the zaiModels registry with metadata and zai provider entries; the flash variant has zero pricing while flashx includes paid pricing. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Collaborator
Author
|
Tested the new models, and it works on LLM current design |
Contributor
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@packages/models/src/models/zai.ts`:
- Around line 263-286: The Z.ai provider entry for model id "glm-4.7-flashx" is
missing the discount field; update the providers array entry (providerId "zai",
modelName "glm-4.7-flashx") to include discount: 0.1 placed after outputPrice:
0.4 / 1e6 so it matches other paid Z.ai direct models and ensures downstream
pricing uses the intended 10% discount.
steebchen
approved these changes
Jan 22, 2026
steebchen
enabled auto-merge
January 22, 2026 13:43
steebchen
added this pull request to the merge queue
Jan 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.