Files
opencode-config/opencode.jsonc
imbytecat 0ddc085a86 feat: 更新模型提供者为CPA相关服务
- 更新模型和小模型的提供者为CPA相关服务。
2026-01-26 20:53:04 +08:00

81 lines
1.9 KiB
JSON

{
"$schema": "https://opencode.ai/config.json",
"autoupdate": "notify",
"theme": "tokyonight",
"model": "cpa-anthropic/claude-sonnet-4-5",
"small_model": "cpa-google/gemini-3-flash",
"plugin": ["oh-my-opencode"],
"provider": {
"cpa-anthropic": {
"name": "CPA Anthropic",
"npm": "@ai-sdk/anthropic",
"options": {
"baseURL": "http://10.0.1.1:8317/v1",
"apiKey": "{env:CPA_API_KEY}"
},
"models": {
"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"
}
}
},
"cpa-google": {
"name": "CPA Google",
"npm": "@ai-sdk/google",
"options": {
"baseURL": "http://10.0.1.1:8317/v1beta",
"apiKey": "{env:CPA_API_KEY}"
},
"models": {
"gemini-3-pro-high": {
"name": "Gemini 3 Pro (High)"
},
"gemini-3-pro-low": {
"name": "Gemini 3 Pro (Low)"
},
"gemini-3-flash": {
"name": "Gemini 3 Flash"
}
}
},
"cpa-openai": {
"name": "CPA OpenAI",
"npm": "@ai-sdk/openai",
"options": {
"baseURL": "http://10.0.1.1:8317/v1",
"apiKey": "{env:CPA_API_KEY}"
},
"models": {
"gpt-5.2": {
"name": "GPT-5.2"
},
"gpt-5.2-codex": {
"name": "GPT-5.2-Codex"
}
}
},
"packy-openai": {
"name": "Packy OpenAI",
"npm": "@ai-sdk/openai",
"options": {
"baseURL": "https://www.packyapi.com/v1",
"apiKey": "{env:PACKY_API_KEY}"
},
"models": {
"gpt-5.2": {
"name": "GPT-5.2"
},
"gpt-5.2-codex": {
"name": "GPT-5.2-Codex"
}
}
}
}
}