mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-12 14:45:38 -06:00
[GH-ISSUE #14514] issue: OpenAI models with max context length set now throw 400: Unrecognized request argument supplied: num_ctx #88023
Reference in New Issue
Block a user
Originally created by @taylorwilsdon on GitHub (May 29, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14514
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
0.6.13
Ollama Version (if applicable)
No response
Operating System
Ubuntu
Browser (if applicable)
Chrome
Confirmation
README.md.Expected Behavior
Upgraded from 0.6.11 and expected that existing models should continue working as they previously had.
Actual Behavior
All OpenAI models with a max context length declared in the model settings (which I've used historically both to communicate upstream to ollama and also as a source of truth for max context length for token usage display via filter function). Does not appear to affect Anthropic models, although those I'm connecting to via pipeline.
Steps to Reproduce
Set a num_ctx value and try to chat
Logs & Screenshots
Additional Information
No response
@casuffitsharp commented on GitHub (May 29, 2025):
Same issue here with top_k on 4.1-mini and 0.6.13. It works correctly on version 0.6.11.
@tjbck commented on GitHub (May 29, 2025):
Intended behaviour now, some OpenAI compatible LLM providers actual do use these custom params and our stance here is that we should allow adding these.