docs(zhipu): add glm coding plan endpoint examples
This commit is contained in:
parent
4a8a2e9c23
commit
358d13ed12
3 changed files with 44 additions and 0 deletions
19
README.md
19
README.md
|
|
@ -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
|
||||||
|
|
|
||||||
19
README.zh.md
19
README.zh.md
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue