mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 13:25:20 +00:00
Merge pull request #17423 from aleprj/fix-filehandler
Fix file_handler filters
This commit is contained in:
commit
dd6f83e9c5
1 changed files with 5 additions and 3 deletions
|
|
@ -127,8 +127,10 @@ async def process_filter_functions(
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
# Handle file cleanup for inlet
|
# Handle file cleanup for inlet
|
||||||
if skip_files and "files" in form_data.get("metadata", {}):
|
if skip_files:
|
||||||
del form_data["files"]
|
if "files" in form_data.get("metadata", {}):
|
||||||
del form_data["metadata"]["files"]
|
del form_data["metadata"]["files"]
|
||||||
|
if "files" in form_data:
|
||||||
|
del form_data["files"]
|
||||||
|
|
||||||
return form_data, {}
|
return form_data, {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue