Conversation
🦋 Changeset detectedLatest commit: 117481d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
93b86c4 to
918f767
Compare
Contributor
Author
Contributor
Author
|
Why are the workflows waiting for approval 👀 |
Contributor
|
Works well. I tested here. The only possible problem is that GLM 5 is still not available for non-max plans, but will be next week. So I guess can leave it default. People with API key know what they are doing. |
kevinvandijk
approved these changes
Feb 11, 2026
Collaborator
kevinvandijk
left a comment
There was a problem hiding this comment.
Thanks @Neonsy! I made a slight update to the changeset note but everthing else looks good!
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.
Context
This PR updates Z.ai support to make
glm-5the default model and keep model selection consistent across all Z.ai API lines (international_coding,international_api,china_coding,china_api) in the extension/webview flow.Implementation
glm-4.7toglm-5in the Z.ai provider model catalogs.china_codingandchina_apiresolve to the mainland model catalog in:china_apimapping to mainland defaults/model setsWhere the values come from
https://docs.z.ai/guides/llm/glm-5)./modelsand/chat/completionsprobes against Z.ai endpoints.How to Test
cd src && pnpm exec vitest run api/providers/__tests__/zai.spec.tscd webview-ui && pnpm exec vitest run src/components/kilocode/hooks/__tests__/getModelsByProvider.spec.tscd webview-ui && pnpm exec vitest run src/components/settings/__tests__/ApiOptions.spec.tsxzai.zaiApiLinetochina_api.glm-5.glm-5appears on Z.ai/modelsresponses for each supported line.glm-5chat completion succeeds on coding lines (non-coding line behavior may depend on account/package state).Note
I did not test if the provider works myself