Skip to content

feat(catalog): add Z.AI / Zhipu standard API and Coding Plan providers#361

Open
jimpablo wants to merge 9 commits into
huggingface:mainfrom
jimpablo:feat/catalog-zhipu-zai
Open

feat(catalog): add Z.AI / Zhipu standard API and Coding Plan providers#361
jimpablo wants to merge 9 commits into
huggingface:mainfrom
jimpablo:feat/catalog-zhipu-zai

Conversation

@jimpablo

@jimpablo jimpablo commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Motivation

Zhipu / Z.AI only had a single Coding Plan-style entry. Split China and international, and standard API vs Coding Plan, so users can pick the endpoint that matches their key.

Changes

Adds four catalog providers (data only):

Provider Region Endpoint
zai International https://api.z.ai/api/paas/v4
zai-coding-plan International https://api.z.ai/api/coding/paas/v4
zhipu China https://open.bigmodel.cn/api/paas/v4
zhipu-coding-plan China https://open.bigmodel.cn/api/coding/paas/v4
  • Models: glm-4.5-air, glm-4.7, glm-5-turbo, glm-5.1, glm-5v-turbo, glm-5.2 (default).
  • glm-5.2 only: multi-level thinking (thinkingFormat = "deepseek", including xhigh); other models keep switch-only zai format.
  • Costs follow Z.AI USD pricing on all four providers.
  • Env keys: ZAI_API_KEY, ZAI_CODING_PLAN_API_KEY, ZHIPU_API_KEY, ZHIPU_CODING_PLAN_API_KEY.

Checks

  • uv run pytest — 740 passed
  • uv run ruff check . / ruff format --check . — clean
  • uv run mypy — clean

Catalog-only change; no Python or architectural changes.

@jimpablo jimpablo requested a review from alejandro-ao as a code owner July 14, 2026 10:21
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