From c4832fdb7033e6787961e21eb81e2671519cf87d Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 9 Oct 2025 11:55:12 -0500 Subject: [PATCH] fix: full context issue --- backend/open_webui/utils/middleware.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/backend/open_webui/utils/middleware.py b/backend/open_webui/utils/middleware.py index bbfdd6a368..75bd0ae54a 100644 --- a/backend/open_webui/utils/middleware.py +++ b/backend/open_webui/utils/middleware.py @@ -827,11 +827,7 @@ async def chat_completion_files_handler( if files := body.get("metadata", {}).get("files", None): # Check if all files are in full context mode - all_full_context = all( - item.get("context") == "full" - for item in files - if item.get("type") == "file" - ) + all_full_context = all(item.get("context") == "full" for item in files) queries = [] if not all_full_context: