We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc3a570 commit 01b0cafCopy full SHA for 01b0caf
api/core/model_runtime/model_providers/__base/ai_model.py
@@ -154,7 +154,7 @@ def predefined_models(self) -> list[AIModelEntity]:
154
# get all yaml files path under provider_model_type_path that do not start with __
155
model_schema_yaml_paths = [
156
os.path.join(provider_model_type_path, model_schema_yaml)
157
- for model_schema_yaml in os.listdir(provider_model_type_path)
+ for model_schema_yaml in sorted(os.listdir(provider_model_type_path))
158
if not model_schema_yaml.startswith("__")
159
and not model_schema_yaml.startswith("_")
160
and os.path.isfile(os.path.join(provider_model_type_path, model_schema_yaml))
0 commit comments