mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #23859] perf: emit text tokens as deltas instead of re-serializing the whole chat per SSE event #43043
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23859
Author: @Classic298
Created: 4/17/2026
Status: 🔄 Open
Base:
dev← Head:perf/stream-delta-emit📝 Commits (3)
07ee26bdocs: add writeup for O(N^2) WebSocket payload bloat during LLM streamingd7b36beperf(stream): emit text tokens as deltas instead of re-serializing the whole chat per SSE event6155105style(stream): tighten comments on delta-emit change📊 Changes
1 file changed (+67 additions, -12 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+67 -12)📄 Description
Partially fixes https://github.com/open-webui/open-webui/issues/23733
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.