diff --git a/README.md b/README.md index bae3fa681..5f7e60ec8 100644 --- a/README.md +++ b/README.md @@ -1037,6 +1037,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 @@ -1056,6 +1058,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": { @@ -1088,6 +1096,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 c744e0d20..6a92046e4 100644 --- a/README.zh.md +++ b/README.zh.md @@ -520,6 +520,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 @@ -539,6 +541,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": { @@ -571,6 +579,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 3754c6814..8b359baa1 100644 --- a/config/config.example.json +++ b/config/config.example.json @@ -35,6 +35,12 @@ "model": "deepseek/deepseek-chat", "api_key": "sk-your-deepseek-key" }, + { + "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-gpt4", "model": "openai/gpt-5.2",