Skip to content

Commit

Permalink
Merge branch 'feat/workflow-backend' into deploy/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
takatost committed Mar 19, 2024
2 parents c823eb2 + 53fa4ff commit 63bd495
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/core/app/app_config/easy_ui_based_app/agent/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ def convert(cls, config: dict) -> Optional[AgentEntity]:
: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')
Expand Down

0 comments on commit 63bd495

Please sign in to comment.