Uh oh!
There was an error while loading. Please reload this page.
feat: expose thinking level for all Ollama Cloud reasoning models - #995
Merged
Conversation
Ollama Cloud's OpenAI-compatible endpoint globally accepts reasoning_effort (none/low/medium/high/max), but the thinking-level switcher only appeared for qwen3.5:397b because models.dev does not carry reasoning_options for this provider. Derive thinkingOptions for every reasoning-capable ollama-cloud model from the generated metadata snapshot, with GPT-OSS declared separately because it only accepts low/medium/high and cannot be fully disabled. Also adds max to qwen3.5:397b, which was documented but missing.
Ollama publishes concrete retirement dates for deprecated models — all current deprecated entries were retired on 2026-06-16 and are already gone from the API. Filter them out of the derived thinkingOptions so the switcher does not surface a knob for a model the provider will reject. This matches the existing provider-registry filter for fallback models.
Fold GPT-OSS thinking options into the same derivation map instead of excluding the prefix and then manually restoring two exact IDs. Future GPT-OSS reasoning models added to the snapshot are now handled automatically — the family-level effort difference is a single branch in the map, not a separate hardcoded entry per id.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ollama Cloud's OpenAI-compatible endpoint globally accepts
reasoning_effort(none/low/medium/high/max), but the thinking-level switcher only appeared forqwen3.5:397b. Every other reasoning-capable model (deepseek-v4-flash, gpt-oss, kimi-k2.6, minimax-m3, etc.) silently returned[]and hid the menu, because models.dev does not carryreasoning_optionsfor theollama-cloudprovider.This was not a model-fetching or discovery bug — the model list and
reasoning: trueflags were correct. The gap was purely in the per-modelthinkingOptionsmetadata.Fix: derive
thinkingOptionsfor every reasoning-capable ollama-cloud model from the generated models.dev snapshot, so new reasoning models are picked up automatically on the next metadata sync. GPT-OSS (gpt-oss:120b,gpt-oss:20b) is declared separately because it only acceptslow/medium/highand its trace cannot be fully disabled. Also addsmaxtoqwen3.5:397b, which the Ollama docs document but was previously missing.Sources:
reasoning_effortfield: high/medium/low/max/none)Verification
@maka/core— 996 pass, 0 fail@maka/runtime— 1789 pass, 7 skipped, 0 fail@maka/desktop— 2526 pass, 0 failcheck-stale-dist— fresh