opencode / opencode.json
tao-shen's picture
fix: 为 Z.ai 配置正确 baseURL,避免走 Anthropic 的 URL
907f999
raw
history blame contribute delete
296 Bytes
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"zai": {
"npm": "@ai-sdk/openai-compatible",
"name": "Z.ai",
"options": {
"baseURL": "https://api.z.ai/api/paas/v4"
},
"models": {
"glm-5": { "name": "GLM-5" }
}
}
}
}