This commit is contained in:
takatost 2024-03-19 21:53:24 +08:00
parent 8acd6f2531
commit 53fa4ffe73

View File

@ -13,8 +13,7 @@ class AgentConfigManager:
:param config: model config args :param config: model config args
""" """
if 'agent_mode' in config and config['agent_mode'] \ if 'agent_mode' in config and config['agent_mode'] \
and 'enabled' in config['agent_mode'] \ and 'enabled' in config['agent_mode']:
and config['agent_mode']['enabled']:
agent_dict = config.get('agent_mode', {}) agent_dict = config.get('agent_mode', {})
agent_strategy = agent_dict.get('strategy', 'cot') agent_strategy = agent_dict.get('strategy', 'cot')