Ollama v0.40.14 fixes Claude Code token cap and API sampler defaults
14, an update to its model runner that changes how its launch commands and API endpoints handle model settings. The `ollama launch claude` command now applies each model's output token limit for Claude Code, so cloud models no longer hit the 128k default cap. The release also fixes decoding of cloud web search responses on /api/chat, preserves readable input content in /v1/responses including prior assistant refusals, lets the Ollama app retry ChatGPT disconnect failures, has `ollama launch codex` verify ChatGPT routing before configuring, and speeds up top-k sampling on MLX for large vocabularies.
Why it matters
People running coding agents and OpenAI-compatible clients through Ollama should see fewer silent mismatches: token limits and sampling settings now come from the model itself rather than falling back to generic defaults.
Sources
- PrimaryOllama
Written by AIToolMaps from the source above and checked against it sentence by sentence.