diff --git a/backend/open_webui/utils/middleware.py b/backend/open_webui/utils/middleware.py index 9a4f93a41..3c53435a4 100644 --- a/backend/open_webui/utils/middleware.py +++ b/backend/open_webui/utils/middleware.py @@ -494,6 +494,7 @@ async def chat_completion_files_handler( if files := body.get("metadata", {}).get("files", None): try: queries_response = await generate_queries( + request, { "model": body["model"], "messages": body["messages"],