diff --git a/README.md b/README.md index aa7b0719a..82d7fe75b 100644 --- a/README.md +++ b/README.md @@ -877,6 +877,16 @@ This design also enables **multi-agent support** with flexible provider selectio } ``` +> **Zhipu GLM Coding Plan**: For the Zhipu GLM coding plan endpoint, specify a custom `api_base`: +> ```json +> { +> "model_name": "glm-4.7-coding", +> "model": "zhipu/glm-4.7", +> "api_key": "your-key", +> "api_base": "https://api.z.ai/api/paas/v4" +> } +> ``` + **DeepSeek** ```json diff --git a/README.zh.md b/README.zh.md index 4f4bde46a..b2714ca12 100644 --- a/README.zh.md +++ b/README.zh.md @@ -512,6 +512,16 @@ Agent 读取 HEARTBEAT.md } ``` +> **智谱 GLM 编码计划(GLM Coding Plan)**: 如需使用智谱 GLM 编码计划端点,可指定自定义 `api_base`: +> ```json +> { +> "model_name": "glm-4.7-coding", +> "model": "zhipu/glm-4.7", +> "api_key": "your-key", +> "api_base": "https://api.z.ai/api/paas/v4" +> } +> ``` + **DeepSeek** ```json diff --git a/config/config.example.json b/config/config.example.json index 9575039f8..f35770d5f 100644 --- a/config/config.example.json +++ b/config/config.example.json @@ -43,6 +43,13 @@ "model": "openai/gpt-5.2", "api_key": "sk-key2", "api_base": "https://api2.example.com/v1" + }, + { + "model_name": "glm-4.7", + "model": "zhipu/glm-4.7", + "api_key": "YOUR_ZHIPU_API_KEY", + "api_base": "https://open.bigmodel.cn/api/paas/v4", + "_comment": "Zhipu GLM-4.7 model. For Zhipu GLM coding plan, use api_base: https://api.z.ai/api/paas/v4" } ], "channels": {