From ec0c79217f4ad3a5e96c2393e3891de8f844bd2a Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Tue, 8 Oct 2024 18:24:12 -0700 Subject: [PATCH] Do not set server chat settings on first run Server chat settings can be set for advanced self-hosted or multi-user cloud setups. They are not necessary anymore as we fallback to use the users chat model for train of thought now --- src/khoj/utils/initialization.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/khoj/utils/initialization.py b/src/khoj/utils/initialization.py index 90bb9921..6a39c41a 100644 --- a/src/khoj/utils/initialization.py +++ b/src/khoj/utils/initialization.py @@ -129,9 +129,6 @@ def initialization(interactive: bool = True): if user_chat_model_name and ChatModelOptions.objects.filter(chat_model=user_chat_model_name).exists(): default_chat_model_name = user_chat_model_name - # Create a server chat settings object with the default chat model - default_chat_model = ChatModelOptions.objects.filter(chat_model=default_chat_model_name).first() - ServerChatSettings.objects.create(chat_default=default_chat_model) logger.info("🗣️ Chat model configuration complete") # Set up offline speech to text model