update
This commit is contained in:
45
opencode.json
Normal file
45
opencode.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"autoshare": false,
|
||||
"share": "disabled",
|
||||
"autoupdate": true,
|
||||
"permission": "allow",
|
||||
"watcher": {
|
||||
"ignore": [
|
||||
"node_modules/**",
|
||||
"dist/**",
|
||||
".git/**"
|
||||
]
|
||||
},
|
||||
"plugin": [
|
||||
"@kevisual/cnb/opencode"
|
||||
],
|
||||
"provider": {
|
||||
"custom-zhipu": {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "国内智谱AI",
|
||||
"models": {
|
||||
"GLM-4.7": {
|
||||
"name": "GLM-4.7"
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"baseURL": "https://open.bigmodel.cn/api/coding/paas/v4",
|
||||
"apiKey": "{env:ZHIPU_API_KEY}"
|
||||
}
|
||||
},
|
||||
"custom-minimax": {
|
||||
"npm": "@ai-sdk/anthropic",
|
||||
"name": "国内MiniMax",
|
||||
"models": {
|
||||
"MiniMax-M2.1": {
|
||||
"name": "MiniMax-M2.1"
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"baseURL": "https://api.minimaxi.com/anthropic/v1",
|
||||
"apiKey": "{env:MINIMAX_API_KEY}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user