fix(custom_tool): omit optional parameters instead of setting them to None (#22171)
This commit is contained in:
parent
390e4cc0bf
commit
f4df80e093
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue