docs(zhipu): add glm coding plan endpoint examples
This commit is contained in:
parent
8a8cc35645
commit
7567a5a4e9
3 changed files with 44 additions and 0 deletions
19
README.md
19
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/<model>` 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
|
||||
|
|
|
|||
19
README.zh.md
19
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/<model>`,并将 `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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue