From 9fe1c8ae13074ad30fad84dba52f878cac221069 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Tue, 16 Jan 2024 12:26:28 +0530 Subject: [PATCH] Make references and online_results optional params to converse_offline Fixes all the failing GPT4All tests because they were missing the online_results argument --- src/khoj/processor/conversation/offline/chat_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/khoj/processor/conversation/offline/chat_model.py b/src/khoj/processor/conversation/offline/chat_model.py index 23a77bb2..3e0f5380 100644 --- a/src/khoj/processor/conversation/offline/chat_model.py +++ b/src/khoj/processor/conversation/offline/chat_model.py @@ -123,9 +123,9 @@ def filter_questions(questions: List[str]): def converse_offline( - references, - online_results, user_query, + references=[], + online_results=[], conversation_log={}, model: str = "mistral-7b-instruct-v0.1.Q4_0.gguf", loaded_model: Union[Any, None] = None,