zhipu coding plan (z-ai China)
document: https://docs-bigmodel-cn.translate.goog/cn/coding-plan/tool/crush?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=zh-CN&_x_tr_pto=wapp&_x_tr_hist=true#2-%E4%BF%AE%E6%94%B9-api-%E7%AB%AF%E7%82%B9
Currently, I set it via ~/.env:
OPENAI_API_KEY="cffoooooooooooooooomw"
OPENAI_URL="https://open.bigmodel.cn/api/coding/paas/v4"
But it does not work:
❯ hi
⏺ [04:15:53] ERROR: Failed to fetch the models
Caused by:
0: GET https://open.bigmodel.cn/api/coding/paas/models
1: 404 GET https://open.bigmodel.cn/api/coding/paas/models
2: {"timestamp":"2025-10-04T20:15:53.206+00:00","status":404,"error":"Not Found","path":"/models"}
FORGE .dotfiles [v0.122.2/glm-4.6]
/info:
❯ /info
PATHS
Agents: ~/forge/agents
History: ~/forge/.forge_history
Checkpoints: ~/forge/snapshots
Policies: ~/forge/permissions.yaml
ENVIRONMENT
Version: v0.122.2
Working Directory: ~/.dotfiles
Shell: /run/current-system/sw/bin/fish
Git Branch: (not in a git repository)
CONVERSATION
ID: 79b171bb-6f4d-4383-acc9-1aaf0c8edbe1
AGENT
ID: FORGE
Model: z-ai/glm-4.6
Provider (URL): https://open.bigmodel.cn/api/coding/paas/v4
API Key: c5e9076b85934...FEmw
FORGE .dotfiles [v0.122.2/glm-4.6]
❯
zhipu coding plan (z-ai China)
document: https://docs-bigmodel-cn.translate.goog/cn/coding-plan/tool/crush?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=zh-CN&_x_tr_pto=wapp&_x_tr_hist=true#2-%E4%BF%AE%E6%94%B9-api-%E7%AB%AF%E7%82%B9
Currently, I set it via
~/.env:But it does not work:
/info: