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
Unable to use Devstral Small: error due to max tokens #926
Some models (Devstral Small on Chutes, Mercury Coder, many more near the bottom of this list) have context lengths of 32k tokens. Since opencode always sets max tokens to 32k and sends more tokens as context, errors result:
This is likely due to an incorrect context length in models.dev. opencode should adapt its request to use a shorter max tokens (in case the data is incorrect) and/or switch to using data from the models endpoint (always use correct data).
Activity
[-]Automatically adapt max tokens[/-][+]Unable to use Devstral Small: error due to max tokens[/+]thdxr commentedon Jul 14, 2025
can you set output tokens number to be 16K or something smaller?
KTibow commentedon Jul 14, 2025
That would theoretically fix it, but ideally anomalyco/models.dev#49 would be merged and then something like this would be added:
Merge pull request anomalyco#926 from xingzihai/feature/pre-commit-qu…
fix(session): prioritize common providers and hide redundant ChatGPT …
fix: imessage send + read resolve lead ID and contact name (anomalyco…