mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #11502] [CLOSED] fix: Filters not skipping files properly #61605
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/11502
Author: @landerrosette
Created: 3/10/2025
Status: ❌ Closed
Base:
dev← Head:fix/skip_files📝 Commits (2)
91b77e7fix: update file cleanup logic to directly reference 'files' key2ceaae0leave tool_handler untouched📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
backend/open_webui/utils/filter.py(+2 -2)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Fixes a bug in
process_filter_functionswhere file removal targeted the incorrect key. The middleware retrieves files directly fromform_data["files"]atd7bfa395b0/backend/open_webui/utils/middleware.py (L756)Therefore,
process_filter_functionscalled atd7bfa395b0/backend/open_webui/utils/middleware.py (L723)should deleteform_data["files"], notform_data["metadata"]["files"].Fixed
process_filter_functions🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.