diff --git a/api/core/app/app_config/easy_ui_based_app/agent/manager.py b/api/core/app/app_config/easy_ui_based_app/agent/manager.py index b50b7f678c..a48316728b 100644 --- a/api/core/app/app_config/easy_ui_based_app/agent/manager.py +++ b/api/core/app/app_config/easy_ui_based_app/agent/manager.py @@ -13,8 +13,7 @@ class AgentConfigManager: :param config: model config args """ if 'agent_mode' in config and config['agent_mode'] \ - and 'enabled' in config['agent_mode'] \ - and config['agent_mode']['enabled']: + and 'enabled' in config['agent_mode']: agent_dict = config.get('agent_mode', {}) agent_strategy = agent_dict.get('strategy', 'cot')