mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #14378] bug: global filter's __init__ gets called multiple times
#55894
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 @suurt8ll on GitHub (May 27, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14378
Check Existing Issues
Problem Description
Filters that have been set to "global" started to behave weirdly after the reent 0.6.11 update. Non-global filters don't have this issue. The trigger seems to be the moment when front-end fetches the model list from the backend. This is how the problem can be reproduced:
Plugin Code
Console Logs
Desired Solution you'd like
Global filters get loaded only once.
Alternatives Considered
No response
Additional Context
v0.6.11uv pip install .bash start.sh@dynm commented on GitHub (May 27, 2025):
b8e16211b9/backend/open_webui/utils/models.py (L241-L244)Maybe this function caused the problem, and the /api/models is very slow now.
@EntropyYue commented on GitHub (May 27, 2025):
I observed that the non-global filter also reloaded multiple, the phenomenon is repeated output
And the streaming slows down
@EntropyYue commented on GitHub (May 27, 2025):
If someone finds the streaming slows down, please temporarily disable all functions
@hurxxxx commented on GitHub (May 27, 2025):
#14392
I hope this resolves issue
@tjbck commented on GitHub (May 27, 2025):
Addressed