Skip to content

Commit

Permalink
Fix/compatible to old tool config (#2839)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly authored Mar 15, 2024
1 parent 742be06 commit f29280b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/controllers/console/app/model_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ def post(self, app_id):
masked_parameter_map = {}
tool_map = {}
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 f29280b

Please sign in to comment.