mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[GH-ISSUE #8498] Filters not working as expected when using the API endpoints #102143
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 @mbeltagy on GitHub (Jan 12, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8498
Expected Behavior:
Filters should have allowed to work with
/api/chat/completionscurrently they only seem partially supported.Actual Behavior:
Only the
inletmethod gets called, but not theoutlet. This was in the context of monitoring tool that I am using to track and control usage: https://github.com/VariantConst/OpenWebUI-Monitor/issues/23Description
The filter code in question is https://github.com/VariantConst/OpenWebUI-Monitor/blob/main/resources/functions/openwebui_monitor_invisible.py
Adding logs and confirmed that that
outletonly gets called when using the chat interface on the web, but not via api.@tjbck commented on GitHub (Jan 12, 2025):
#3237