Files
opencode-config/opencode.jsonc
imbytecat 3d5dbe0b1a feat: 替换小模型为 gemini-2.5-flash-lite 以提升性能
- 将小模型替换为 gemini-2.5-flash-lite 版本以提升性能和效率。
2026-01-26 10:00:46 +08:00

81 lines
2.0 KiB
JSON

{
"$schema": "https://opencode.ai/config.json",
"autoupdate": "notify",
"theme": "tokyonight",
"model": "anthropic-gateway/claude-sonnet-4-5",
"small_model": "google-gateway/gemini-2.5-flash-lite",
"plugin": ["oh-my-opencode"],
"provider": {
"anthropic-gateway": {
"name": "Anthropic Gateway",
"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"
},
"claude-haiku-4-5": {
"name": "Claude Haiku 4.5"
}
}
},
"google-gateway": {
"name": "Google Gateway",
"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-image": {
"name": "Gemini 3 Pro (Image)"
},
"gemini-3-flash": {
"name": "Gemini 3 Flash"
}
}
},
"openai-gateway": {
"name": "OpenAI Gateway",
"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"
}
}
},
"glm-coding-plan": {
"name": "GLM Coding Plan",
"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"
}
}
}
}
}