From 3e74d383fe2fe9574ac3199f1f6fa3b9f436ec2f Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sat, 3 Aug 2024 17:33:20 +0530 Subject: [PATCH] Strip quotes from the response mode llm response --- src/khoj/routers/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/khoj/routers/helpers.py b/src/khoj/routers/helpers.py index 412113a6..193f6591 100644 --- a/src/khoj/routers/helpers.py +++ b/src/khoj/routers/helpers.py @@ -323,7 +323,7 @@ async def aget_relevant_output_modes(query: str, conversation_history: dict, is_ response = await send_message_to_model_wrapper(relevant_mode_prompt) try: - response = response.strip() + response = response.strip().strip('"') if is_none_or_empty(response): return ConversationCommand.Text