mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 12:37:20 +08:00
fix bug
This commit is contained in:
parent
8acd6f2531
commit
53fa4ffe73
@ -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')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user