Explorar el Código

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

takatost hace 1 año
padre
commit
76da66fb7e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      api/controllers/console/app/app.py

+ 1 - 1
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(