You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to add new custom model variants with extended options? #2829
How can I create a new custom model variant (e.g., gpt-5-high) that extends an existing model (gpt-5) with different options, without overwriting the original model configuration?
I want to have multiple configurations of the same base model with different options. For example:
gpt-5: Default configuration with medium reasoning effort
gpt-5-high: Same model but with reasoningEffort: "high"
Attempted to add a custom model in ~/.config/opencode/opencode.json:
Activity
rekram1-node commentedon Sep 27, 2025
hmm this isn't currently supported but this is a good idea, it would look more like this tho:
Support for thsi should be in next release
rekram1-node commentedon Sep 27, 2025
Just merged change so you could do that^^^ note the
"id"fieldwill be in next release
docs: add documentation for anomalyco#2833 anomalyco#2829
fix: use 'id' field for custom GLM-4.7 model aliases
tomaszferens commentedon Jan 4, 2026
Is it now preferred to use it via "variants" feature?
rekram1-node commentedon Jan 4, 2026
yes!
moonray commentedon Jan 16, 2026
There's very little docs on variants. Can it be used in an agent's frontmatter to always use that variant for an agent?