mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #7973] [CLOSED] enh: filter empty collections #22142
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/7973
Author: @gabriel-ecegi
Created: 12/20/2024
Status: ❌ Closed
Base:
dev← Head:empty_collection_files_fix📝 Commits (1)
d05490fenh: filter empty collections📊 Changes
1 file changed (+17 additions, -8 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+17 -8)📄 Description
Pull Request Checklist
devbranchfix:prefix as this addresses a bug/improvementChangelog Entry
Description
This PR adds the logic for filtering out empty collections in completions to the backend. This ensures a cleaner separation of concerns and avoids redundant frontend handling.
Changed
middleware.pyto exclude empty collections during chat completion processing.Fixed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.