mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-24 11:58:31 -05:00
[GH-ISSUE #22508] issue: Custom message object field "thinking" set in filter inlet is stripped, preventing workarounds for passing model reasoning back to ollama API. #58392
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 @kosmo1dev on GitHub (Mar 9, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22508
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.43
Ollama Version (if applicable)
v0.17.7
Operating System
Windows 10
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When Filter, in its inlet method, adds "thinking" field to the message objects sent in the request body, it should be preserved and sent to the Ollama API as part of the request.
Given that the documentation explicitly lists "Injecting Extra API Body Parameters" as a reason to use Filters, as well as the lack of support for the current Ollama API (admittedly poorly documented) thinking field in the message template of chat completion request, I believe filters should be capable of bridging this gap.
Actual Behavior
Despite the filter being executed and successfully modifying the "content" field of the message object, the "thinking" field it sets in message objects is then stripped before being sent to Ollama API. The API receives the request without this custom field and, in consequence, fails to properly pass thinking to the model.
Steps to Reproduce
Example Filter function definition:
Logs & Screenshots
Captured request body showing assistant message with "content" modified by the filter (reasoning removed) without it being added in a new "thinking" field.
Additional Information
No response
@Classic298 commented on GitHub (Apr 14, 2026):
8bd23b9145