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
Hello,
The model commandline argument is misleading when used with openrouters model syntax using preset.
For example below command just starts and continues working with the last used model and but it doesnt give any error or message to the user that it is not using the model requested :
Thank you @rekram1-node
fp8-and-higher is a preset that I defined. Others might have different and multiple presets so might not be convenient to update config for each model. But I've realized it is possible to use env variables in config,
Using suggestion of @michabbb in #1439
somewhat indirect way but below seems to be a workaround
Ahh that makes sense, I don't use openrouter so I was unfamiliar with the @preset syntax. I completely agree this would be inconvenient to add to models.dev then haha
Activity
github-actions commentedon Aug 18, 2025
This issue might be a duplicate of existing issues. Please check:
:nitroFeel free to ignore if none of these address your specific case.
rekram1-node commentedon Aug 18, 2025
@ilkerhk just fyi to use a model you need to prefix with the provider, if you are using openrouter this would be:
openrouter/qwen/qwen3-coder@preset/fp8-and-higher
ilkerhk commentedon Aug 18, 2025
Yes, I am using with provider name. That was a typo in the message, now corrected. Thanks for noticing.
rekram1-node commentedon Aug 18, 2025
Ahh okay I think the issue here is we need to either:
I will work on adding it to models.dev for ya
ilkerhk commentedon Aug 18, 2025
Thank you @rekram1-node
fp8-and-higher is a preset that I defined. Others might have different and multiple presets so might not be convenient to update config for each model. But I've realized it is possible to use env variables in config,
Using suggestion of @michabbb in #1439
somewhat indirect way but below seems to be a workaround
With above unspecified provider/model/url in opencode.json now it is possible to use it with any name :
rekram1-node commentedon Aug 18, 2025
Ahh that makes sense, I don't use openrouter so I was unfamiliar with the @preset syntax. I completely agree this would be inconvenient to add to models.dev then haha
rekram1-node commentedon Aug 18, 2025
Going to close as this is possible using custom config.