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
Custom model id override loses cost/limit data when id doesn't exist in models.dev #14361
When a model config uses id to map to a variant, and that id doesn't exist in models.dev but the config key does, cost/limit/capability data is not inherited
Plugins
No response
OpenCode version
1.2.9
Steps to reproduce
In your provider config, add a model entry like:
"base-model-key": {
"id": "custom-variant-id"
}
wwhere "base-model-key" exists in models.dev but "custom-variant-id" does not.
2. Use this model in a request.
Please let me know if I need to provide more information for this issue. I also put up a fix for this :) . Its probably a niche edge case and there's a work around of just throwing the cost info into the opencode.jsonc but imo this is easier and cleaner
My current local workaround (have to do for every model)
Activity
cbangera2 commentedon Feb 20, 2026
Please let me know if I need to provide more information for this issue. I also put up a fix for this :) . Its probably a niche edge case and there's a work around of just throwing the cost info into the
opencode.jsoncbut imo this is easier and cleanerMy current local workaround (have to do for every model)
github-actions commentedon Apr 21, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.