fix(custom_tool): omit optional parameters instead of setting them to None (#22171)

This commit is contained in:
诗浓
2025-07-10 20:56:45 +08:00
committed by GitHub
parent 390e4cc0bf
commit f4df80e093

View File

@@ -213,7 +213,8 @@ class ApiTool(Tool):
elif "default" in property:
body[name] = property["default"]
else:
body[name] = None
# omit optional parameters that weren't provided, instead of setting them to None
pass
break
# replace path parameters