Skip to content

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

Closed
pridemusvaire wants to merge 1 commit into
RooCodeInc:mainfrom
pridemusvaire:feature/zai-provider
Closed

[Feat] Add Z.AI and Z.AI Coding Plan inference providers#772
pridemusvaire wants to merge 1 commit 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

First-class BYOK providers with International/China region select,
gateway regionBaseUrls for v4 hosts, and selectable env field options.
@roomote-roomote

roomote-roomote Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

No code issues found. See task

Reviewed c55f7bc

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