mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[GH-ISSUE #15106] issue: filter_functions can just return form_data, but the source code shows filter_function can reutrn form_data ang flags #104466
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 @zhanghaochen-817 on GitHub (Jun 18, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15106
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.3.11
Ollama Version (if applicable)
v0.1.32
Operating System
windows 10
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
filter_functions not oly can return form_data, but also can return flags
Actual Behavior
filter_functions can just return form_data, but the source code shows filter_function can reutrn form_data ang flags.
I will show the source code:
step1:
in backend/openwebui/utils/middleware.py-->def process_chat_payload():
` try:
filter_functions = [
Functions.get_function_by_id(filter_id)
for filter_id in get_sorted_filter_ids(model)
]
we can see filter_function can return 'form_data' and 'flags', so i step into process_filter_functions function.
Step2:
in backend/openwebui/utils/filter.py-->def process_filter_functions():
`
Execute handler
return form_data, {}
`
we can see function process_filter_functions just return {}, so the flags only can be {}.
Steps to Reproduce
1.start with windows10 instsall
2.install with source code
3.start_window.bat
Logs & Screenshots
no error, just some questions
Additional Information
No response
@zhanghaochen-817 commented on GitHub (Jun 18, 2025):
Dear developer, i wish you can read this issue and replay me. thanks.
@tjbck commented on GitHub (Jun 18, 2025):
NOT an issue.