From c91678078d63c9354d25ea4b409962fb0f89fc10 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Wed, 9 Oct 2024 15:55:55 -0700 Subject: [PATCH] Correct the usage of query passed to summarize function --- src/khoj/routers/api_chat.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/khoj/routers/api_chat.py b/src/khoj/routers/api_chat.py index af19a40c..7b0241b5 100644 --- a/src/khoj/routers/api_chat.py +++ b/src/khoj/routers/api_chat.py @@ -695,7 +695,6 @@ async def chat( is_automated_task = conversation_commands == [ConversationCommand.AutomatedTask] pending_research = True - researched_results = "" online_results: Dict = dict() ## Extract Document References @@ -785,7 +784,7 @@ async def chat( yield result else: response_log = await generate_summary_from_files( - q=query, + q=q, user=user, file_filters=file_filters, meta_log=meta_log, @@ -1260,7 +1259,7 @@ async def old_chat( yield result else: response_log = await generate_summary_from_files( - q=query, + q=q, user=user, file_filters=file_filters, meta_log=meta_log,