mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #23054] [CLOSED] fix: Add pagination support to /chats/all endpoint to prevent OOM #42630
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/23054
Author: @yang1002378395-cmyk
Created: 3/26/2026
Status: ❌ Closed
Base:
dev← Head:fix-chat-oom-v3📝 Commits (1)
be59e10fix: Add pagination support to /chats/all endpoint to prevent OOM📊 Changes
1 file changed (+31 additions, -2 deletions)
View changed files
📝
backend/open_webui/routers/chats.py(+31 -2)📄 Description
Pull Request Checklist
devbranchChangelog Entry
Description
Add pagination support to the
/chats/allendpoint to prevent Out of Memory (OOM) errors for users with many chats.Fixed
pageandlimitquery parameters to/chats/allendpointAdded
Additional Information
Fixes #22206
Root Cause: Users with thousands of chats were experiencing OOM errors when the
/chats/allendpoint tried to load all chats into memory at once.Solution:
pageandlimitquery parametersTesting:
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.