From 020167c7cf48ae94fe6275775b05e313f3819161 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Wed, 18 Sep 2024 19:36:57 -0700 Subject: [PATCH] Set default openai text to image model correctly during initialization Speech to text model was previously being set to the text to image model previously! --- src/khoj/utils/initialization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/khoj/utils/initialization.py b/src/khoj/utils/initialization.py index 8ef0ef53..79948ccb 100644 --- a/src/khoj/utils/initialization.py +++ b/src/khoj/utils/initialization.py @@ -99,7 +99,7 @@ def initialization(): openai_text_to_image_model = input( f"Enter the OpenAI text to image model you want to use (default: {default_text_to_image_model}): " ) - openai_speech2text_model = openai_text_to_image_model or default_text_to_image_model + openai_text_to_image_model = openai_text_to_image_model or default_text_to_image_model TextToImageModelConfig.objects.create( model_name=openai_text_to_image_model, model_type=TextToImageModelConfig.ModelType.OPENAI )