Fixed in: not specified
Existing upstream issue, not opened by wiretruth. Ollama's OpenAI-compatible endpoint ignores max_completion_tokens (v0.40.3), and OllamaModel sends only that name (OllamaProvider keeps the OpenAI profile default, openai_chat_supports_max_completion_tokens=True), so the limit never applies. The root cause is in Ollama, as for any-llm; the check reads the request, so retire or rewrite the scenario when Ollama ships the fix.