mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
feat: toggle filter middleware
This commit is contained in:
@@ -330,7 +330,7 @@ async def chat_completed(request: Request, form_data: dict, user: Any):
|
||||
try:
|
||||
filter_functions = [
|
||||
Functions.get_function_by_id(filter_id)
|
||||
for filter_id in get_sorted_filter_ids(model)
|
||||
for filter_id in get_sorted_filter_ids(request, model)
|
||||
]
|
||||
|
||||
result, _ = await process_filter_functions(
|
||||
|
||||
Reference in New Issue
Block a user