mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[GH-ISSUE #14785] issue: Filter Functions losting system prompts and advanced parameters #88101
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 @vibe-Chen on GitHub (Jun 8, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14785
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
v0.6.13
Ollama Version (if applicable)
No response
Operating System
Windows 10
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Filter Functions can read (and manipulate) system prompts.
In addition, Filter Functions can read both admin-set system prompts and user-set system prompts (per chat takes the first place, per account if no).
Actual Behavior
Filter Functions can't see system prompts, and once those functions activated, existing system prompts (set by user or admin) get lost.
In addition, most of the advanced parameters get lost too.
Steps to Reproduce
To compare:
Logs & Screenshots
Screenshot (contains a tiny log):

The function used in this example (though it's not a issue of the function itself):
https://openwebui.com/f/keke/context_length_filter
My simple POST handler, written with the help of AI:
https://pastebin.com/vpkM0Ehp
Additional Information
No response
@tjbck commented on GitHub (Jun 8, 2025):
Intended behaviour, filter functions are always called first before any model specific configurations are applied.
@vibe-Chen commented on GitHub (Jun 8, 2025):
I'm sorry, but almost no model specific configurations are applied if Filter Functions are active - check the screenshot and see the POST I've got.
@tjbck commented on GitHub (Jun 8, 2025):
Filter functions are called before model configs are applied, hence no model params. Hope that clarifies!
@vibe-Chen commented on GitHub (Jun 9, 2025):
You still not checking any of the info I've provided - or you shall notice that model params get disappeared when filter functions are active. They just not applying, regardless of order.