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!
This commit is contained in:
Debanjum Singh Solanky 2024-09-18 19:36:57 -07:00
parent 077b88bafa
commit 020167c7cf

View file

@ -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
)