Skip to content

Commit

Permalink
Fix/compatible to old tool config (langgenius#2839)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly authored and lroolle committed Mar 15, 2024
1 parent 413fe7e commit a1b2ce0
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 a1b2ce0

Please sign in to comment.