This commit is contained in:
takatost 2024-03-20 11:23:25 +08:00
parent 884eeebe83
commit a9b8917e22

View File

@ -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'])