Spaces:
Running
Running
Update model_logic.py
Browse files- model_logic.py +3 -1
model_logic.py
CHANGED
@@ -88,7 +88,9 @@ def get_default_model_display_name_for_provider(provider: str) -> str | None:
|
|
88 |
|
89 |
# Fallback to the first model in the sorted list if default not found or not set
|
90 |
if models_dict:
|
91 |
-
sorted_display_names = sorted(list(models_dict.keys()))
|
|
|
|
|
92 |
if sorted_display_names:
|
93 |
return sorted_display_names[0]
|
94 |
return None
|
|
|
88 |
|
89 |
# Fallback to the first model in the sorted list if default not found or not set
|
90 |
if models_dict:
|
91 |
+
#sorted_display_names = sorted(list(models_dict.keys()))
|
92 |
+
sorted_display_names = list(models_dict.keys())
|
93 |
+
|
94 |
if sorted_display_names:
|
95 |
return sorted_display_names[0]
|
96 |
return None
|