Skip to content

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

Merged
mrubens merged 5 commits into
RooCodeInc:developfrom
pridemusvaire:feature/zai-inference-provider
Jul 25, 2026
Merged

[Feat] Add Z.AI and Z.AI Coding Plan inference providers#765
mrubens merged 5 commits into
RooCodeInc:developfrom
pridemusvaire:feature/zai-inference-provider

Conversation

@pridemusvaire

@pridemusvaire pridemusvaire commented Jul 24, 2026

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 instead of four separate catalog rows.

  • 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

  • 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)
  • Pre-push: check-types:fast, lint, knip

@roomote-roomote

roomote-roomote Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

No code issues found. See task

  • apps/docs/environment-variables.mdx:186 Document ZAI_API_KEY, ZAI_REGION, ZAI_CODING_PLAN_API_KEY, and ZAI_CODING_PLAN_REGION alongside the other inference provider settings. The new providers are available to self-hosted deployments, but their required configuration is absent from the public environment-variable reference; the provider listings and env-forwarding guidance in apps/docs/models.mdx, SELF_HOSTING.md, and README.md should be kept in sync as well.

Reviewed cc763d

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA.
Posted by the CLA Assistant Lite bot.

@pridemusvaire

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Jul 24, 2026
@pridemusvaire
pridemusvaire force-pushed the feature/zai-inference-provider branch from b570aec to 9c13597 Compare July 25, 2026 00:02
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
pridemusvaire force-pushed the feature/zai-inference-provider branch from 2a568eb to 53a76ad Compare July 25, 2026 00:39
@pridemusvaire pridemusvaire reopened this Jul 25, 2026

@mrubens mrubens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I just pushed a small cleanup and will merge once the tests and review come back clean.

@pridemusvaire

Copy link
Copy Markdown
Contributor Author

thanks @mrubens , I love the product, great work.

@mrubens
mrubens merged commit 697272a into RooCodeInc:develop Jul 25, 2026
12 checks passed
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.

2 participants