Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Add Z.ai coding plan support - #8003

Merged
mrubens merged 2 commits into
mainfrom
pull-zai-coding-plan-support
Sep 15, 2025
Merged

Add Z.ai coding plan support#8003
mrubens merged 2 commits into
mainfrom
pull-zai-coding-plan-support

Conversation

@daniel-lxs

@daniel-lxs daniel-lxs commented Sep 15, 2025

Copy link
Copy Markdown
Member

Adds support for Z.ai's coding plan subscription tiers (International and China).

Pulled from downstream PR Kilo-Org/kilocode#2402. Thanks @chrarnoldus.


Important

Add support for Z.ai's new coding plan subscription tiers, updating schemas, configurations, and tests to handle international and China options.

  • Behavior:
    • Adds support for Z.ai's new coding plan subscription tiers (international_coding, china_coding) in provider-settings.ts and zai.ts.
    • Updates ZAiHandler in zai.ts to use zaiApiLineConfigs for determining base URL and region.
    • Defaults to international_coding if zaiApiLine is not specified.
  • Configuration:
    • Introduces zaiApiLineSchema and zaiApiLineConfigs in provider-settings.ts to manage Z.ai API lines.
    • Updates zaiApiLine handling in ZAi.tsx to reflect new subscription tiers.
  • Testing:
    • Updates tests in zai.spec.ts to cover new subscription tiers and default behavior.
    • Ensures correct API key and base URL usage in tests for both international and China configurations.

This description was created by Ellipsis for 40d6155. You can customize this summary. It will automatically update as commits are pushed.

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Enhancement New feature or request Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants