mirror of https://github.com/langgenius/dify.git
fix bug
This commit is contained in:
parent
884eeebe83
commit
a9b8917e22
|
|
@ -66,7 +66,7 @@ class AppService:
|
|||
app_template = default_app_templates[app_mode]
|
||||
|
||||
# get model config
|
||||
default_model_config = app_template.get('model_config')
|
||||
default_model_config = app_template.get('model_config').copy()
|
||||
if default_model_config and 'model' in default_model_config:
|
||||
# get model provider
|
||||
model_manager = ModelManager()
|
||||
|
|
@ -99,7 +99,6 @@ class AppService:
|
|||
else:
|
||||
default_model_dict = default_model_config['model']
|
||||
|
||||
default_model_dict = default_model_dict.copy()
|
||||
default_model_config['model'] = json.dumps(default_model_dict)
|
||||
|
||||
app = App(**app_template['app'])
|
||||
|
|
|
|||
Loading…
Reference in New Issue