Files
opencode/opencode.jsonc
imbytecat 262ee1758a refactor: 优化模型配置与统一命名格式
- 将多个模型的配置项 variant 从 xhigh 调整为 medium 或 high,以优化性能与资源使用平衡。
- 将模型名称格式统一为连字符命名,提升命名一致性。
2026-02-13 16:36:15 +08:00

106 lines
2.9 KiB
JSON

{
"$schema": "https://opencode.ai/config.json",
"autoupdate": false,
"theme": "system",
"model": "cpa-anthropic/claude-opus-4-6",
"small_model": "cpa-google/gemini-3-flash",
"plugin": ["oh-my-opencode@latest"],
"provider": {
// ref: https://models.dev/
"cpa-anthropic": {
"name": "CPA Anthropic",
"npm": "@ai-sdk/anthropic",
"options": {
"baseURL": "https://cpa.furtherverse.com/v1",
"apiKey": "{env:CPA_API_KEY}",
"setCacheKey": true
},
"models": {
"claude-opus-4-6": {
"name": "Claude Opus 4.6",
"tool_call": true,
"reasoning": true,
"modalities": {
"input": ["text", "image", "pdf"],
"output": ["text"]
},
"limit": { "context": 1000000, "output": 128000 }
},
"claude-sonnet-4-5": {
"name": "Claude Sonnet 4.5",
"tool_call": true,
"reasoning": false,
"modalities": {
"input": ["text", "image", "pdf"],
"output": ["text"]
},
"limit": { "context": 200000, "output": 64000 }
}
}
},
"cpa-google": {
"name": "CPA Google",
"npm": "@ai-sdk/google",
"options": {
"baseURL": "https://cpa.furtherverse.com/v1beta",
"apiKey": "{env:CPA_API_KEY}",
"setCacheKey": true
},
"models": {
"gemini-3-pro": {
"name": "Gemini 3 Pro",
"tool_call": true,
"reasoning": true,
"modalities": {
"input": ["text", "image", "video", "audio", "pdf"],
"output": ["text"]
},
"limit": { "context": 1048576, "output": 65536 }
},
"gemini-3-flash": {
"name": "Gemini 3 Flash",
"tool_call": true,
"reasoning": true,
"modalities": {
"input": ["text", "image", "video", "audio", "pdf"],
"output": ["text"]
},
"limit": { "context": 1048576, "output": 65536 }
}
}
},
"cpa-openai": {
"name": "CPA OpenAI",
"npm": "@ai-sdk/openai",
"options": {
"baseURL": "https://cpa.furtherverse.com/v1",
"apiKey": "{env:CPA_API_KEY}",
"setCacheKey": true
},
"models": {
"gpt-5.3-codex": {
"name": "GPT-5.3-Codex",
"tool_call": true,
"reasoning": true,
"modalities": {
"input": ["text", "image", "pdf"],
"output": ["text"]
},
"limit": { "context": 400000, "input": 272000, "output": 128000 }
},
"gpt-5.2": {
"name": "GPT-5.2",
"tool_call": true,
"reasoning": true,
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"limit": { "context": 400000, "input": 272000, "output": 128000 }
}
}
}
},
"disabled_providers": ["opencode"]
}