mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-30 17:25:30 -05:00
[GH-ISSUE #14378] bug: global filter's __init__ gets called multiple times
#136955
Reference in New Issue
Block a user
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):
https://github.com/open-webui/open-webui/blob/b8e16211b9d207e91b7da0a2055a7a679c05b6ce/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