Skip to content

Commit

Permalink
fix: compatible to old tool config (#2837)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly authored Mar 14, 2024
1 parent 19d3a56 commit bbea3a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/controllers/console/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ def get(self, app_id):
agent_mode = model_config.agent_mode_dict
# decrypt agent tool parameters if it's secret-input
for tool in agent_mode.get('tools') or []:
if not isinstance(tool, dict) or len(tool.keys()) <= 3:
continue
agent_tool_entity = AgentToolEntity(**tool)
# get tool
try:
Expand Down

0 comments on commit bbea3a6

Please sign in to comment.