From a27b8d3e5462d1e55cf13e0c584e67b3ce49057a Mon Sep 17 00:00:00 2001 From: sabaimran Date: Mon, 4 Nov 2024 16:51:37 -0800 Subject: [PATCH] Remove summarize condition for only 1 file filter --- src/khoj/routers/api_chat.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/khoj/routers/api_chat.py b/src/khoj/routers/api_chat.py index bb561ca5..a9a6f09f 100644 --- a/src/khoj/routers/api_chat.py +++ b/src/khoj/routers/api_chat.py @@ -801,10 +801,6 @@ async def chat( response_log = "No files selected for summarization. Please add files using the section on the left." async for result in send_llm_response(response_log): yield result - elif len(file_filters) > 1 and not agent_has_entries: - response_log = "Only one file can be selected for summarization." - async for result in send_llm_response(response_log): - yield result else: async for response in generate_summary_from_files( q=q,