mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-19 23:19:15 +08:00
fix: fix import from explore apps err when OpenAI not inited (#2671)
This commit is contained in:
parent
607f9eda35
commit
76da66fb7e
@ -129,7 +129,7 @@ class AppListApi(Resource):
|
|||||||
"No Default System Reasoning Model available. Please configure "
|
"No Default System Reasoning Model available. Please configure "
|
||||||
"in the Settings -> Model Provider.")
|
"in the Settings -> Model Provider.")
|
||||||
else:
|
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_config_dict["model"]["name"] = default_model_entity.model
|
||||||
|
|
||||||
model_configuration = AppModelConfigService.validate_configuration(
|
model_configuration = AppModelConfigService.validate_configuration(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user