Skip to content

[Feat] Add Z.AI and Z.AI Coding Plan inference providers#770

Closed
pridemusvaire wants to merge 2 commits into
RooCodeInc:mainfrom
pridemusvaire:feature/zai-provider
Closed

[Feat] Add Z.AI and Z.AI Coding Plan inference providers#770
pridemusvaire wants to merge 2 commits into
RooCodeInc:mainfrom
pridemusvaire:feature/zai-provider

Conversation

@pridemusvaire

Copy link
Copy Markdown
Contributor

Summary

Adds Z.AI and Z.AI Coding Plan as first-class BYOK inference providers, with an International / China region select on connect.

  • Catalog ids: zai, zai-coding-plan
  • Model ids: zai/glm-5.2, zai-coding-plan/glm-5.2 (region-independent)
  • Env: ZAI_API_KEY + ZAI_REGION, ZAI_CODING_PLAN_API_KEY + ZAI_CODING_PLAN_REGION (global | china, default global)
  • Inference gateway uses models.dev v4 bases and /chat/completions paths (not OpenAI /v1/...)
  • Connect UI supports selectable additionalEnvFields.options (region select)

Test plan

  • Types + API gateway unit tests
  • Pre-push: check-types, lint, knip
  • CI green on this PR

Co-authored-by: Matt Rubens <2600+mrubens@users.noreply.github.com>
@roomote-roomote

roomote-roomote Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Review stopped: this PR was closed and superseded before the review could be published.

Reviewed ef3a90e

First-class BYOK providers with International/China region select,
gateway regionBaseUrls for v4 hosts, and selectable env field options.
@pridemusvaire
pridemusvaire force-pushed the feature/zai-provider branch from 6c1d770 to ef3a90e Compare July 25, 2026 01:33
@pridemusvaire

Copy link
Copy Markdown
Contributor Author

Superseded: rebased onto origin/develop as a feature PR.

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.

1 participant