fix: fix import from explore apps err when OpenAI not inited (#2671)

This commit is contained in:
takatost 2024-03-04 14:06:54 +08:00 committed by GitHub
parent 607f9eda35
commit 76da66fb7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,7 +129,7 @@ class AppListApi(Resource):
"No Default System Reasoning Model available. Please configure "
"in the Settings -> Model Provider.")
else:
model_config_dict["model"]["provider"] = default_model_entity.provider
model_config_dict["model"]["provider"] = default_model_entity.provider.provider
model_config_dict["model"]["name"] = default_model_entity.model
model_configuration = AppModelConfigService.validate_configuration(