mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #3915] Chat Controls: ollama model parameters override the options payload. #13430
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ProjectMoon on GitHub (Jul 16, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/3915
Bug Report
Description
Bug Summary:
In chat controls, you can set various options. For simplicity, we will use num_ctx as the example (but it applies to all parameters). If I set num_ctx to a value, but the model has a parameter set in OpenWebUI (not ollama!), then it is the parameter of the OpenWebUI model that will be used.
Steps to Reproduce:
/ollama/api/chat, and sends the proper payload to the server.This affects all parameters that OpenWebUI supports.
Expected Behavior:
In the example above, I'd expect ollama to spawn with num_ctx = 1024.
Actual Behavior:
OpenWebUI forcibly overwrites any incoming parameters in the Ollama chat completion endpoint, if the model has parameters defined in OpenWebUI:
Since the
optionskey is cleared out, this means chat controls subtly do not always work for ollama models.Environment
Open WebUI Version: 0.3.8
Ollama (if applicable): 0.2.5
Operating System: Gentoo Linux
Browser (if applicable): Firefox
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:

This is the request sent to the server. I have set num_ctx to 8192. But the model has it forcibly defined as 1024 in OpenWebUI.
Ollama still shows num_ctx as 1024:
Installation Method
Docker
@tjbck commented on GitHub (Jul 17, 2024):
Should be fixed on dev, keep me updated!