forked from imbytecat/opencode-config
59 lines
1.3 KiB
JSON
59 lines
1.3 KiB
JSON
{
|
|
"$schema": "https://opencode.ai/config.json",
|
|
"provider": {
|
|
"cli-proxy-api": {
|
|
"name": "CLI Proxy API",
|
|
"npm": "@ai-sdk/anthropic",
|
|
"options": {
|
|
// "baseURL": "https://cpa.services.sh.cn:8443/v1",
|
|
"baseURL": "http://10.0.1.1:8317/v1",
|
|
"apiKey": "{env:CPA_API_KEY}"
|
|
},
|
|
"models": {
|
|
// Claude
|
|
"claude-opus-4-5-thinking": {
|
|
"name": "Claude Opus 4.5 (Thinking)"
|
|
},
|
|
"claude-sonnet-4-5-thinking": {
|
|
"name": "Claude Sonnet 4.5 (Thinking)"
|
|
},
|
|
"claude-sonnet-4-5": {
|
|
"name": "Claude Sonnet 4.5"
|
|
},
|
|
"claude-haiku-4-5": {
|
|
"name": "Claude Haiku 4.5"
|
|
},
|
|
|
|
// Gemini
|
|
"gemini-3-pro-preview": {
|
|
"name": "Gemini 3 Pro"
|
|
},
|
|
"gemini-3-flash-preview": {
|
|
"name": "Gemini 3 Flash"
|
|
},
|
|
|
|
// GPT
|
|
"gpt-5.2": {
|
|
"name": "GPT-5.2"
|
|
},
|
|
"gpt-5.2-codex": {
|
|
"name": "GPT-5.2-Codex"
|
|
}
|
|
}
|
|
},
|
|
"GLM Coding": {
|
|
"name": "Z.AI",
|
|
"npm": "@ai-sdk/openai-compatible",
|
|
"options": {
|
|
"baseURL": "https://api.z.ai/api/coding/paas/v4",
|
|
"apiKey": "{env:ZAI_API_KEY}"
|
|
},
|
|
"models": {
|
|
"glm-4.7": {
|
|
"name": "GLM-4.7"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|