Skip to content

Add support for Zhipu Coding API endpoint (#41)#42

Open
zkfopen wants to merge 1 commit intoRightNow-AI:mainfrom
zkfopen:feat/zhipu-coding-support
Open

Add support for Zhipu Coding API endpoint (#41)#42
zkfopen wants to merge 1 commit intoRightNow-AI:mainfrom
zkfopen:feat/zhipu-coding-support

Conversation

@zkfopen
Copy link

@zkfopen zkfopen commented Feb 27, 2026

Summary

Add support for Zhipu AI's specialized Coding API endpoint, which provides models optimized for code-related tasks.

Changes

  • Add ZHIPU_CODING_BASE_URL constant (https://open.bigmodel.cn/api/coding/paas/v4) in model_catalog.rs
  • Register zhipu_coding as a provider in the driver factory
  • Update known_providers() list and corresponding tests

Context

Resolves #41

The Zhipu Coding API uses a separate endpoint from the regular Zhipu API but shares the same ZHIPU_API_KEY authentication. This change enables users to configure agents with Zhipu's coding-specialized models.

Test plan

  • Code compiles with cargo build --workspace --lib
  • Unit tests pass
  • Provider appears in known_providers() list

🤖 Generated with Claude Code

Add ZHIPU_CODING_BASE_URL and register 'zhipu_coding' as a provider.
This enables use of Zhipu's specialized coding API endpoint which provides
models optimized for code-related tasks.

- Add ZHIPU_CODING_BASE_URL constant in model_catalog.rs
- Register 'zhipu_coding' provider in driver factory
- Update known_providers list and tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

Support Zhipu Coding Plan models in openfang init

1 participant