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
ollama-cloud: reasoning variants not passing parameter to Ollama API #36638
The built-in ollama-cloud provider's reasoning variants for thinking models do not correctly control the thinking effort level. When switching between high and max variants, the Ollama Chat API request does not include the think parameter, which is how the Ollama API controls reasoning intensity per the spec.
Steps to Reproduce
Connect to Ollama Cloud via /connect
Select a thinking model, e.g. glm-5.2 (has the thinking tag on ollama.com)
Switch between high and max variants
The thinking content in the response shows no meaningful difference in reasoning depth between variants
The think parameter is absent from the API request sent to Ollama
The built-in reasoning variants for ollama-cloud should correctly pass the think parameter as a top-level field in the Ollama Chat API request, matching the Ollama API spec.
References
Ollama Chat API: POST /api/chat — think is a top-level parameter accepting "high", "medium", "low", "max" or boolean
Confirmed via MITM proxy: The built-in max variant for ollama-cloud sends reasoning_effort: max (OpenAI-style parameter) instead of think: max (Ollama API parameter).
Captured request (built-in max variant, no custom model config):
The ollama-cloud provider on models.dev uses @ai-sdk/openai-compatible which maps reasoning variants to reasoning_effort (OpenAI parameter). However the Ollama Cloud API uses Ollama's native think parameter, not reasoning_effort. The reasoning_effort is silently ignored by the API.
Activity
zxp09 commentedon Jul 13, 2026
Confirmed via MITM proxy: The built-in
maxvariant forollama-cloudsendsreasoning_effort: max(OpenAI-style parameter) instead ofthink: max(Ollama API parameter).Captured request (built-in max variant, no custom model config):
{ "model": "glm-5.2", "max_tokens": 32000, "reasoning_effort": "max", "messages": [...], "stream": true }Expected (per Ollama API spec at https://github.com/ollama/ollama/blob/main/docs/api.md):
{ "model": "glm-5.2", "max_tokens": 32000, "think": "max", "messages": [...], "stream": true }Root cause
The
ollama-cloudprovider on models.dev uses@ai-sdk/openai-compatiblewhich maps reasoning variants toreasoning_effort(OpenAI parameter). However the Ollama Cloud API uses Ollama's nativethinkparameter, notreasoning_effort. Thereasoning_effortis silently ignored by the API.github-actions commentedon Sep 12, 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.