mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06:00
[GH-ISSUE #16624] issue: Model's default context window in Admin Panel/Settings/Models/Advanced Params is not used. #88719
Reference in New Issue
Block a user
Originally created by @mario-grgic on GitHub (Aug 14, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16624
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
0.6.22
Ollama Version (if applicable)
0.11.4 git-837379a9
Operating System
macOS 15.6 (24G84)
Browser (if applicable)
Brave 1.81.135 (Official Build) (arm64)
Confirmation
README.md.Expected Behavior
I changed the model's default context window size in Admin settings, and I expected these settings to be used in chats with the model. However, default value of 2048 is always show in the UI instead the Admin set model's context window size.
Actual Behavior
open-webui does not respect Admin set context window size for the model and the chat UI controls always show default num_ctx value of 2048, completely ignoring admin setting.
Steps to Reproduce
I am using macOS and have python3.11 installed. I created virtual environment and installed open-webui in it. (
pip install -U open-webui)I start open-webui with
open-webui serve.I am also building ollama from source and running it with
ollama serve.If I open http://localhost:8080/ with Brave browser and log in with my account.
I typically use
gemma3:27bwhich has 8192 context window size. However, open-webui chat controls always default to 2048 context window size.So I wanted to change the model's default context size to something bigger. I opened Admin Panel, navigated to Settings, then Models. I edited the gemma3:27b model and in "Advanced Params" modified the
num_ctx (ollama)value to 8192. I saved the model.I started the new chat with gemma3:27b model. I expanded the chat controls and scrolled down to inspect the
num_ctx (ollama)parameter's value, and it is set toDefault. Clicking onDefaultindeed shows 2028 value.Logs & Screenshots
localhost-1755182616439.log
open-webui.log
https://github.com/user-attachments/assets/a9094b84-9012-42a8-bc58-d2ece5e2fb48
Additional Information
No response
@mario-grgic commented on GitHub (Aug 14, 2025):
It seems that even customizing the chat configuration and increasing the
num_ctxvalue has no effect either and this is definitely a regression.@rgaricano commented on GitHub (Aug 14, 2025):
That it's just a confussion in interpretation (that was treated in other issues)
When Advanced Params are in Default it mean that it doesn't change the defaults ones (the ones from previous layers),
yes, when click on its appears a value, but this isn't the active value, it's just a default value for the var.
& yes, it could be a good idea that it will reflect the active value.
@tjbck commented on GitHub (Aug 14, 2025):
Exactly what @rgaricano said, this is working as intended.
@neuhaus commented on GitHub (Jan 26, 2026):
The culprit is the line
https://github.com/open-webui/open-webui/blob/2b26355002064228e9b671339f8f3fb9d1fafa73/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte#L1361