From 7c35da9fc44eddf0a8ea1e810b473b56da0e81f4 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Mon, 28 Aug 2023 14:12:04 -0700 Subject: [PATCH] Fix bug in /chat endpoint for general and update depdendencies --- pyproject.toml | 2 +- src/khoj/routers/api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f2932dbf..a7fed14d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ dependencies = [ "transformers >= 4.28.0", "torch >= 2.0.1", "uvicorn == 0.17.6", - "aiohttp == 3.8.4", + "aiohttp == 3.8.5", "langchain >= 0.0.187", "pypdf >= 3.9.0", "requests >= 2.26.0", diff --git a/src/khoj/routers/api.py b/src/khoj/routers/api.py index ab547be5..51ff4296 100644 --- a/src/khoj/routers/api.py +++ b/src/khoj/routers/api.py @@ -771,7 +771,7 @@ async def extract_references_and_questions( return compiled_references, inferred_queries if conversation_type == ConversationCommand.General: - return compiled_references, inferred_queries + return compiled_references, inferred_queries, q # Extract filter terms from user message defiltered_query = q