docs: 更新 v0.2 设计文档中所有旧端点为 GLM Coding Plan 端点

- 统一使用 https://api.z.ai/api/coding/paas/v4
- 移除所有旧的 api.zhipuai.cn 和 open.bigmodel.cn 引用
This commit is contained in:
2026-06-30 08:18:42 +08:00
parent 6d6ef3c319
commit a1972c7ff9
+5 -5
View File
@@ -147,13 +147,13 @@ codex --version
创建 `~/.codex/config.toml`:
```toml
[profile.default]
openai_base_url = "https://api.zhipuai.cn/v1"
openai_base_url = "https://api.z.ai/api/coding/paas/v4"
model = "glm-5.2"
```
设置环境变量:
```bash
export OPENAI_API_BASE="https://api.zhipuai.cn/v1"
export OPENAI_API_BASE="https://api.z.ai/api/coding/paas/v4"
export OPENAI_API_KEY="6903e83faf454106aa7529c9e18e2ea5.gYMSjWwk1XDN0U5h"
```
@@ -178,7 +178,7 @@ npm install
**配置 GLM-5.2**:
```bash
export OPENROUTER_BASE_URL="https://open.bigmodel.cn/api/coding/paas/v4"
export OPENROUTER_BASE_URL="https://api.z.ai/api/coding/paas/v4"
export OPENROUTER_API_KEY="4ae9f90df9514aa8ba61a5ee885d0dab.NIr7DfGQ8rdMN0Cd"
# 启动
@@ -374,11 +374,11 @@ Claude: Git 提交
```bash
# Codex (GLM-5.2)
export OPENAI_API_BASE="https://api.zhipuai.cn/v1"
export OPENAI_API_BASE="https://api.z.ai/api/coding/paas/v4"
export OPENAI_API_KEY="你的智谱API_Key"
# Gemini (GLM-5.2)
export OPENROUTER_BASE_URL="https://open.bigmodel.cn/api/coding/paas/v4"
export OPENROUTER_BASE_URL="https://api.z.ai/api/coding/paas/v4"
export OPENROUTER_API_KEY="你的智谱API_Key"
```