This commit is contained in:
takatost 2024-03-19 21:53:24 +08:00
parent 8acd6f2531
commit 53fa4ffe73
1 changed files with 1 additions and 2 deletions

View File

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