[Feat] Add Z.AI and Z.AI Coding Plan inference providers#765
Merged
mrubens merged 5 commits intoJul 25, 2026
Merged
Conversation
pridemusvaire
requested review from
brunobergher,
daniel-lxs and
mrubens
as code owners
July 24, 2026 23:51
Contributor
|
No code issues found. See task
Reviewed cc763d |
Contributor
|
All contributors have signed the CLA. |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
pridemusvaire
force-pushed
the
feature/zai-inference-provider
branch
from
July 25, 2026 00:02
b570aec to
9c13597
Compare
First-class BYOK providers with International/China region select, gateway regionBaseUrls for v4 hosts, and selectable additional env field options.
Use getSetupModelProvider for option defaults so the effect only depends on selectedProvider.
pridemusvaire
force-pushed
the
feature/zai-inference-provider
branch
from
July 25, 2026 00:39
2a568eb to
53a76ad
Compare
mrubens
approved these changes
Jul 25, 2026
mrubens
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the PR! I just pushed a small cleanup and will merge once the tests and review come back clean.
Contributor
Author
|
thanks @mrubens , I love the product, great work. |
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
Adds Z.AI and Z.AI Coding Plan as first-class BYOK inference providers, with an International / China region select on connect instead of four separate catalog rows.
zai,zai-coding-planzai/glm-5.2,zai-coding-plan/glm-5.2(region-independent)ZAI_API_KEY+ZAI_REGION,ZAI_CODING_PLAN_API_KEY+ZAI_CODING_PLAN_REGION(global|china, defaultglobal)/chat/completionspaths (not OpenAI/v1/...)additionalEnvFields.options(region select)Test plan
pnpm --filter @roomote/types exec vitest run src/model-provider-config.test.ts src/__tests__/inference-gateway.test.ts(83 passed)pnpm --filter @roomote/api exec vitest run src/handlers/inference/__tests__/inference-gateway.test.ts(43 passed)