-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Z.ai: add GLM-4.5-X, AirX, Flash (expand model coverage) #8745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Z.ai: add GLM-4.5-X, AirX, Flash (expand model coverage) #8745
Conversation
…nical api line keys
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for three new Z.ai GLM-4.5 model variants: glm-4.5-x, glm-4.5-airx, and glm-4.5-flash. These models are added to both international and China (mainland) product lines with appropriate regional pricing and consistent technical specifications.
Key changes:
- Added three new model configurations (glm-4.5-x, glm-4.5-airx, glm-4.5-flash) to both international and mainland model maps
- Configured regional pricing differences between international and China markets
- All new models share common specs: 98,304 max tokens, 131,072 context window, no image support, with prompt cache support
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Code Review SummaryFound inconsistencies between international and mainland China model configurations that need to be addressed:
These inconsistencies could cause unexpected behavior when users switch between API lines, as the same model ID would have different capabilities. |
…x output); add tests
|
Added GLM-4.5V (vision) to Z.ai provider.
Files: Validated with unit tests (Zai provider) and local vitest run. |
|
Added GLM-4.5V (vision) per docs:
Code: packages/types/src/providers/zai.ts and tests in src/api/providers/tests/zai.spec.ts. |
|
@roomote the complete list is |
|
Acknowledged. Thanks for sharing the complete internationalZAiModels list. I will update the model map and tests to include: glm-4.5, glm-4.6, glm-4.5v, glm-4.5-x, glm-4.5-air, glm-4.5-airx, glm-4-32b-0414-128k, and glm-4.5-flash. |
- Update pricing, context window, and capabilities for: glm-4.5-x, glm-4.5-airx, glm-4.5-flash, glm-4.5v, glm-4.6 - Add glm-4-32b-0414-128k - Align tests with new model specs
yeah i guess it's better now for the coverage but if u can't choose others endpoint, it's useless and not compatible |
|
@cobra91 they don't want us to have both it seems. they will do the juggling on their end. |

Summary
Added models
Changes
Validation
Release note
Important
Add GLM-4.5-X, AirX, and Flash models to Z.ai provider and update tests.
glm-4.5-x,glm-4.5-airx, andglm-4.5-flashtointernationalZAiModelsandmainlandZAiModelsinzai.ts.glm-4.6context window to 200,000 ininternationalZAiModels.glm-4.5vmodel with vision support inzai.spec.ts.zai.spec.ts.This description was created by
for 03a0111. You can customize this summary. It will automatically update as commits are pushed.