File tree 1 file changed +1
-17
lines changed
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -159,23 +159,7 @@ def _create_chat_configuration():
159
159
interactive = interactive ,
160
160
)
161
161
162
- # Explicitly set default chat model
163
- chat_models_configured = ChatModel .objects .count ()
164
- if chat_models_configured > 0 :
165
- default_chat_model_name = ChatModel .objects .first ().name
166
- # If there are multiple chat models, ask the user to choose the default chat model
167
- if chat_models_configured > 1 and interactive :
168
- user_chat_model_name = input (
169
- f"Enter the default chat model to use (default: { default_chat_model_name } ): "
170
- )
171
- else :
172
- user_chat_model_name = None
173
-
174
- # If the user's choice is valid, set it as the default chat model
175
- if user_chat_model_name and ChatModel .objects .filter (name = user_chat_model_name ).exists ():
176
- default_chat_model_name = user_chat_model_name
177
-
178
- logger .info ("🗣️ Chat model configuration complete" )
162
+ logger .info ("🗣️ Chat model configuration complete" )
179
163
180
164
# Set up offline speech to text model
181
165
use_offline_speech2text_model = "n" if not interactive else input ("Use offline speech to text model? (y/n): " )
You can’t perform that action at this time.
0 commit comments