-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json
More file actions
29 lines (29 loc) · 740 Bytes
/
Copy pathopencode.json
File metadata and controls
29 lines (29 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"$schema": "https://opencode.ai/config.json",
"model": "zhipu/glm-5.2",
"permission": {
"*": "allow",
"rm -rf /*": "deny",
"git push --force*": "ask",
"git push origin main": "ask",
"gh pr create*": "ask",
"gh pr merge*": "ask"
},
"provider": {
"zhipu": {
"npm": "@ai-sdk/openai-compatible",
"name": "Zhipu AI (GLM)",
"options": {
"baseURL": "https://open.bigmodel.cn/api/paas/v4",
"apiKey": "{env:ZHIPU_API_KEY}"
},
"models": {
"glm-5.2": { "name": "GLM-5.2" },
"glm-5.1": { "name": "GLM-5.1" },
"glm-5": { "name": "GLM-5" },
"glm-4.7": { "name": "GLM-4.7" },
"glm-4.6": { "name": "GLM-4.6" }
}
}
}
}