mirror of
https://github.com/langgenius/dify.git
synced 2026-03-23 23:37:55 +08:00
fix bug
This commit is contained in:
@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user