Sisyphus OpenCode 模型配置指南
在使用 Sisyphus (Oh My OpenCode) 时,正确配置 OpenCode 模型名称对于确保模型能够被正确调用至关重要。本文将介绍如何为 Sisyphus 配置 OpenCode 大模型,并以 Big Pickle 为例展示最佳实践。
# 命名规则#
在 oh-my-opencode.json 配置文件中指定 OpenCode 模型时,必须遵循以下命名规范:
- 前缀:必须保留
opencode/前缀。 - 小写:模型名称部分必须全部小写。
- 连接符:原名称中的空格必须替换为横线 (
-)。
注意:目前 OpenCode Zen 的完整模型名称列表尚未完全整合,因此请暂时依据上述规则进行手动转换。
更多关于模型配置和 ID 格式(如
provider_id/model_id)的详细信息,请参考 Models 文档 中的说明:“这里完整的 ID 是provider_id/model_id。例如,如果你使用 OpenCode Zen,你可以使用opencode/gpt-5.1-codex来使用 GPT 5.1 Codex。”
## 示例:Big Pickle#
-
❌ 错误写法:
json"model": "opencode/Big Pickle" -
✅ 正确写法:
json"model": "opencode/big-pickle"
# 完整配置文件示例#
配置文件通常位于 ~/.config/opencode/oh-my-opencode.json。
以下是一个完整的配置示例,展示了如何在 agents 配置中应用 opencode/big-pickle 模型:
json1{ 2 "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json", 3 "google_auth": false, 4 "agents": { 5 "librarian": { 6 "model": "opencode/big-pickle" 7 }, 8 "explore": { 9 "model": "google/antigravity-gemini-3-flash" 10 }, 11 "oracle": { 12 "model": "google/antigravity-gemini-3-pro-high" 13 }, 14 "frontend-ui-ux-engineer": { 15 "model": "google/antigravity-gemini-3-pro-high" 16 }, 17 "document-writer": { 18 "model": "google/antigravity-gemini-3-flash" 19 }, 20 "multimodal-looker": { 21 "model": "google/antigravity-gemini-3-flash" 22 } 23 } 24}
通过遵循这一命名约定,你可以确保 Sisyphus 能够准确识别并连接到预期的 OpenCode 模型,从而充分利用 Big Pickle 等高性能模型的优势。