Files
opencode-config/opencode.jsonc
imbytecat 7fdc400e60 feat: 启用缓存键设置提升模型请求缓存效率
- 启用缓存键设置以提升模型请求的缓存效率。
2026-01-26 23:09:32 +08:00

95 lines
2.3 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}",
"setCacheKey": true
},
"models": {
"gpt-5.2": {
"name": "GPT-5.2",
"options": {
"reasoningEffort": "xhigh"
}
},
"gpt-5.2-codex": {
"name": "GPT-5.2-Codex",
"options": {
"reasoningEffort": "xhigh"
}
}
}
}
// "packy-openai": {
// "name": "Packy OpenAI",
// "npm": "@ai-sdk/openai",
// "options": {
// "baseURL": "https://www.packyapi.com/v1",
// "apiKey": "{env:PACKY_API_KEY}",
// "setCacheKey": true
// },
// "models": {
// "gpt-5.2": {
// "name": "GPT-5.2",
// "options": {
// "reasoningEffort": "xhigh"
// }
// },
// "gpt-5.2-codex": {
// "name": "GPT-5.2-Codex",
// "options": {
// "reasoningEffort": "xhigh"
// }
// }
// }
// }
}
}