mirror of
https://github.com/open-webui/open-webui.git
synced 2025-10-09 20:32:45 +02:00
refac: filters
This commit is contained in:
@@ -52,7 +52,7 @@ async def process_filter_functions(
|
|||||||
# Prepare handler function
|
# Prepare handler function
|
||||||
handler = getattr(function_module, filter_type, None)
|
handler = getattr(function_module, filter_type, None)
|
||||||
if not handler:
|
if not handler:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Check if the function has a file_handler variable
|
# Check if the function has a file_handler variable
|
||||||
if filter_type == "inlet" and hasattr(function_module, "file_handler"):
|
if filter_type == "inlet" and hasattr(function_module, "file_handler"):
|
||||||
|
Reference in New Issue
Block a user