forked from imbytecat/opencode-config
- 更新所有代理和分类的模型配置,统一使用新的CPA模型标识并新增未指定级别的高低优先级模型设置。 - 移除旧的 GLM 和 Claude 模型配置,替换为新的 Packy OpenAI 模型配置,并更新模型名称和版本。
81 lines
1.9 KiB
JSON
81 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://opencode.ai/config.json",
|
|
"autoupdate": "notify",
|
|
"theme": "tokyonight",
|
|
"model": "anthropic-gateway/claude-sonnet-4-5",
|
|
"small_model": "google-gateway/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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|