docs(zhipu): add glm coding plan endpoint examples

This commit is contained in:
Alix-007 2026-03-17 17:15:16 +08:00
parent 4a8a2e9c23
commit 358d13ed12
3 changed files with 44 additions and 0 deletions

View file

@ -1037,6 +1037,8 @@ This design also enables **multi-agent support** with flexible provider selectio
| **Antigravity** | `antigravity/` | Google Cloud | Custom | OAuth only | | **Antigravity** | `antigravity/` | Google Cloud | Custom | OAuth only |
| **GitHub Copilot** | `github-copilot/` | `localhost:4321` | gRPC | - | | **GitHub Copilot** | `github-copilot/` | `localhost:4321` | gRPC | - |
> For Zhipu GLM Coding Plan, keep the model as `zhipu/<model>` and set `api_base` to `https://open.bigmodel.cn/api/coding/paas/v4`.
#### Basic Configuration #### Basic Configuration
```json ```json
@ -1056,6 +1058,12 @@ This design also enables **multi-agent support** with flexible provider selectio
"model_name": "glm-4.7", "model_name": "glm-4.7",
"model": "zhipu/glm-4.7", "model": "zhipu/glm-4.7",
"api_key": "your-zhipu-key" "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": { "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** **DeepSeek**
```json ```json

View file

@ -520,6 +520,8 @@ Agent 读取 HEARTBEAT.md
| **Antigravity** | `antigravity/` | Google Cloud | 自定义 | 仅 OAuth | | **Antigravity** | `antigravity/` | Google Cloud | 自定义 | 仅 OAuth |
| **GitHub Copilot** | `github-copilot/` | `localhost:4321` | gRPC | - | | **GitHub Copilot** | `github-copilot/` | `localhost:4321` | gRPC | - |
> 如果你使用智谱 GLM Coding Plan请保持 `model``zhipu/<model>`,并将 `api_base` 改成 `https://open.bigmodel.cn/api/coding/paas/v4`
#### 基础配置示例 #### 基础配置示例
```json ```json
@ -539,6 +541,12 @@ Agent 读取 HEARTBEAT.md
"model_name": "glm-4.7", "model_name": "glm-4.7",
"model": "zhipu/glm-4.7", "model": "zhipu/glm-4.7",
"api_key": "your-zhipu-key" "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": { "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** **DeepSeek**
```json ```json

View file

@ -35,6 +35,12 @@
"model": "deepseek/deepseek-chat", "model": "deepseek/deepseek-chat",
"api_key": "sk-your-deepseek-key" "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_name": "loadbalanced-gpt4",
"model": "openai/gpt-5.2", "model": "openai/gpt-5.2",