Ollama v0.40.14 updates Claude Code limits and API behavior
According to Ollama's release notes, v0.40.14 makes Claude Code launches apply each model's output-token limit and adds a ChatGPT routing check to Codex configuration. The release also fixes decoding for cloud web-search responses on /api/chat, preserves readable input on the Responses endpoint, retains packaged sampler defaults on OpenAI-compatible endpoints, and allows the Ollama app to retry ChatGPT disconnects. Ollama also reports faster top-k sampling on MLX for large vocabularies.
The documented changes affect how AI coding tools and compatible API clients handle output limits, routing, input content, sampling defaults, web-search responses, and connection failures.
What's Changed
ollama launch claudenow applies the model's output token limit for Claude Code, so cloud models no longer run into the 128k default cap- Cloud web search responses on
/api/chatare now decoded correctly, including compressed responses - OpenAI-compatible endpoints no longer override a model's packaged sampler defaults — clients that send no
temperature/top_pget the model's own values instead of 1.0, matching/api/chat /v1/responsesnow preserves readable input content, including prior assistant refusals, instead of flattening it- Ollama's app can now retry ChatGPT disconnect failures instead of leaving the connection in a broken state
ollama launch codexverifies ChatGPT routing before configuring, and reports a clear error when routing is unavailable- Faster top-k sampling on MLX for large vocabularies
Full Changelog: v0.40.13...v0.40.14