From 7567a5a4e90a8f0b8f9007511d0a1e13f5063e04 Mon Sep 17 00:00:00 2001 From: Alix-007 <267018309+Alix-007@users.noreply.github.com> Date: Tue, 17 Mar 2026 17:15:16 +0800 Subject: [PATCH] docs(zhipu): add glm coding plan endpoint examples --- README.md | 19 +++++++++++++++++++ README.zh.md | 19 +++++++++++++++++++ config/config.example.json | 6 ++++++ 3 files changed, 44 insertions(+) diff --git a/README.md b/README.md index 159ac706f..218f591fe 100644 --- a/README.md +++ b/README.md @@ -1047,6 +1047,8 @@ This design also enables **multi-agent support** with flexible provider selectio | **Antigravity** | `antigravity/` | Google Cloud | Custom | OAuth only | | **GitHub Copilot** | `github-copilot/` | `localhost:4321` | gRPC | - | +> For Zhipu GLM Coding Plan, keep the model as `zhipu/` and set `api_base` to `https://open.bigmodel.cn/api/coding/paas/v4`. + #### Basic Configuration ```json @@ -1071,6 +1073,12 @@ This design also enables **multi-agent support** with flexible provider selectio "model_name": "glm-4.7", "model": "zhipu/glm-4.7", "api_key": "your-zhipu-key" + }, + { + "model_name": "glm-4.7-coding-plan", + "model": "zhipu/glm-4.7", + "api_base": "https://open.bigmodel.cn/api/coding/paas/v4", + "api_key": "your-zhipu-key" } ], "agents": { @@ -1113,6 +1121,17 @@ This design also enables **multi-agent support** with flexible provider selectio } ``` +**智谱 AI (GLM Coding Plan)** + +```json +{ + "model_name": "glm-4.7-coding-plan", + "model": "zhipu/glm-4.7", + "api_base": "https://open.bigmodel.cn/api/coding/paas/v4", + "api_key": "your-key" +} +``` + **DeepSeek** ```json diff --git a/README.zh.md b/README.zh.md index 9877ef9f4..1a19b9ad8 100644 --- a/README.zh.md +++ b/README.zh.md @@ -532,6 +532,8 @@ Agent 读取 HEARTBEAT.md | **Antigravity** | `antigravity/` | Google Cloud | 自定义 | 仅 OAuth | | **GitHub Copilot** | `github-copilot/` | `localhost:4321` | gRPC | - | +> 如果你使用智谱 GLM Coding Plan,请保持 `model` 为 `zhipu/`,并将 `api_base` 改成 `https://open.bigmodel.cn/api/coding/paas/v4`。 + #### 基础配置示例 ```json @@ -556,6 +558,12 @@ Agent 读取 HEARTBEAT.md "model_name": "glm-4.7", "model": "zhipu/glm-4.7", "api_key": "your-zhipu-key" + }, + { + "model_name": "glm-4.7-coding-plan", + "model": "zhipu/glm-4.7", + "api_base": "https://open.bigmodel.cn/api/coding/paas/v4", + "api_key": "your-zhipu-key" } ], "agents": { @@ -598,6 +606,17 @@ Agent 读取 HEARTBEAT.md } ``` +**智谱 AI (GLM Coding Plan)** + +```json +{ + "model_name": "glm-4.7-coding-plan", + "model": "zhipu/glm-4.7", + "api_base": "https://open.bigmodel.cn/api/coding/paas/v4", + "api_key": "your-key" +} +``` + **DeepSeek** ```json diff --git a/config/config.example.json b/config/config.example.json index 1c11cd42a..1bc86b40c 100644 --- a/config/config.example.json +++ b/config/config.example.json @@ -65,6 +65,12 @@ "api_key": "sk-key1", "api_base": "https://api1.example.com/v1" }, + { + "model_name": "glm-coding-plan", + "model": "zhipu/glm-4.7", + "api_key": "your-zhipu-key", + "api_base": "https://open.bigmodel.cn/api/coding/paas/v4" + }, { "model_name": "loadbalanced-gpt-5.4", "model": "openai/gpt-5.4",