From fab82b51de8d30056035ad11fb1575236e848e62 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 1 Jan 2025 20:13:28 -0800 Subject: [PATCH] fix: generate_queries --- backend/open_webui/utils/middleware.py | 1 + 1 file changed, 1 insertion(+) 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"],