mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 20:19:12 +08:00
Fix/compatible to old tool config (#2839)
This commit is contained in:
parent
742be06ea9
commit
f29280ba5c
@ -52,6 +52,9 @@ class ModelConfigResource(Resource):
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user