mirror of
https://github.com/langgenius/dify.git
synced 2026-04-13 14:48:11 +08:00
fix bug
This commit is contained in:
parent
8337e3c6ba
commit
b50f221327
@ -66,7 +66,8 @@ class AppService:
|
||||
app_template = default_app_templates[app_mode]
|
||||
|
||||
# get model config
|
||||
default_model_config = app_template.get('model_config').copy()
|
||||
default_model_config = app_template.get('model_config')
|
||||
default_model_config = default_model_config.copy() if default_model_config else None
|
||||
if default_model_config and 'model' in default_model_config:
|
||||
# get model provider
|
||||
model_manager = ModelManager()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user