open-webui/backend/open_webui/routers
Classic298 88bbe4e1d7
perf: skip pipeline filter session setup when no filters exist (#29146)
process_pipeline_inlet_filter() and its outlet counterpart construct and tear
down an aiohttp ClientSession, with its own connector and cookie jar, on
every chat completion and every task generation request just to iterate an
empty filter list. On deployments without pipelines, which is the default,
that is wasted setup on every message.

Both functions now return the payload untouched before the session is
created when there is nothing to call. The per-call saving is small, a few
microseconds of object construction per request on the pinned aiohttp; the
point is that requests stop paying setup for a feature that is not
configured.
2026-08-28 12:22:23 -04:00
..
analytics.py refac 2026-06-29 01:38:41 -05:00
audio.py perf: build info log messages lazily so raising the log level actually saves work (#27837) 2026-08-02 15:39:10 -05:00
auths.py refac 2026-08-24 17:47:10 -04:00
automations.py refac 2026-08-13 17:26:38 -06:00
calendar.py refac 2026-06-29 13:03:14 -05:00
channels.py refac 2026-08-24 18:29:19 -04:00
chats.py refac 2026-08-25 13:18:38 -04:00
configs.py refac 2026-08-24 18:38:29 -04:00
evaluations.py refac 2026-07-24 02:36:10 -04:00
files.py fix: don't hold a database connection for the lifetime of an SSE stream (#28183) 2026-08-17 01:46:54 -06:00
folders.py fix: keep folder parent references acyclic (#28748) 2026-08-24 17:06:19 -04:00
functions.py refac 2026-08-17 01:21:58 -07:00
groups.py refac 2026-06-29 05:47:21 -05:00
images.py perf: build info log messages lazily so raising the log level actually saves work (#27837) 2026-08-02 15:39:10 -05:00
knowledge.py chore: format 2026-08-25 16:53:53 -04:00
memories.py refac 2026-08-11 17:35:05 -06:00
models.py refac 2026-08-25 09:55:18 -04:00
notes.py refac 2026-08-25 13:18:38 -04:00
notifications.py refac 2026-07-27 19:39:36 -04:00
ollama.py fix: apply connection prefix id to the model display name as well as the id (#28950) 2026-08-23 15:27:09 -04:00
openai.py fix: long streamed lines no longer abort the response (#28114) 2026-08-25 12:16:37 -04:00
pipelines.py perf: skip pipeline filter session setup when no filters exist (#29146) 2026-08-28 12:22:23 -04:00
prompts.py refac 2026-06-29 13:03:14 -05:00
retrieval.py chore: format 2026-08-25 16:53:53 -04:00
scim.py refac 2026-08-23 13:49:50 -04:00
skills.py perf: stop scanning every skill on each listing and chat turn (#28798) 2026-08-19 11:07:33 -07:00
tasks.py refac 2026-08-11 01:15:05 -06:00
terminals.py refac 2026-08-24 18:38:29 -04:00
tools.py chore: format 2026-08-25 16:53:53 -04:00
users.py refac: drop the redundant .keys() from two dict membership tests (#28859) 2026-08-23 16:02:09 -04:00
utils.py refac 2026-06-17 02:52:35 +02:00