mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
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/22464
Author: @Classic298
Created: 3/8/2026
Status: ❌ Closed
Base:
dev← Head:fix/paginate-oom-endpoints📝 Commits (1)
6eb154ffix: add pagination and streaming to OOM-vulnerable endpoints (#22206)📊 Changes
9 files changed (+314 additions, -141 deletions)
View changed files
📝
backend/open_webui/models/chats.py(+21 -9)📝
backend/open_webui/models/feedbacks.py(+24 -9)📝
backend/open_webui/models/files.py(+24 -7)📝
backend/open_webui/routers/chats.py(+42 -6)📝
backend/open_webui/routers/evaluations.py(+45 -7)📝
backend/open_webui/routers/files.py(+9 -3)📝
src/lib/apis/chats/index.ts(+91 -61)📝
src/lib/apis/evaluations/index.ts(+24 -16)📝
src/lib/apis/files/index.ts(+34 -23)📄 Description
Untested - Reference PR only
https://github.com/open-webui/open-webui/issues/22206
Multiple API endpoints loaded entire datasets into memory at once, causing OOM crashes for users with large data volumes. This commit adds server-side pagination and streaming to all affected endpoints.
High priority (regular user OOM):
GET /chats/all: added page/limit params with batched queries
GET /evaluations/feedbacks/user: added page/limit params
GET /files/: added page/limit params
Medium priority (admin OOM):
GET /evaluations/feedbacks/all: added page/limit params
GET /evaluations/feedbacks/all/export: converted to NDJSON streaming
GET /chats/all/db: converted to NDJSON streaming export
GET /chats/all/archived: added page/limit params
Model layer: enabled actual skip/limit in get_chats() (was commented out), added skip/limit to get_archived_chats_by_user_id, get_all_feedbacks, get_feedbacks_by_user_id, get_files, get_files_by_user_id.
Frontend: updated getAllChats, getAllArchivedChats, getFiles to paginate in batches; updated getAllUserChats and exportAllFeedbacks to parse NDJSON streams.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.