mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 11:56:55 +08:00
fix bug
This commit is contained in:
parent
884eeebe83
commit
a9b8917e22
@ -66,7 +66,7 @@ class AppService:
|
|||||||
app_template = default_app_templates[app_mode]
|
app_template = default_app_templates[app_mode]
|
||||||
|
|
||||||
# get model config
|
# 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:
|
if default_model_config and 'model' in default_model_config:
|
||||||
# get model provider
|
# get model provider
|
||||||
model_manager = ModelManager()
|
model_manager = ModelManager()
|
||||||
@ -99,7 +99,6 @@ class AppService:
|
|||||||
else:
|
else:
|
||||||
default_model_dict = default_model_config['model']
|
default_model_dict = default_model_config['model']
|
||||||
|
|
||||||
default_model_dict = default_model_dict.copy()
|
|
||||||
default_model_config['model'] = json.dumps(default_model_dict)
|
default_model_config['model'] = json.dumps(default_model_dict)
|
||||||
|
|
||||||
app = App(**app_template['app'])
|
app = App(**app_template['app'])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user