From 76da66fb7e987cd5555585b2aca490aeb62f1fe5 Mon Sep 17 00:00:00 2001 From: takatost Date: Mon, 4 Mar 2024 14:06:54 +0800 Subject: [PATCH] fix: fix import from explore apps err when OpenAI not inited (#2671) --- api/controllers/console/app/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controllers/console/app/app.py b/api/controllers/console/app/app.py index 59a7535144..21ce9cb6af 100644 --- a/api/controllers/console/app/app.py +++ b/api/controllers/console/app/app.py @@ -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(