fix: self.method should method in api_tool.py (#11926)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong 2024-12-21 21:24:59 +08:00 committed by GitHub
parent e22cc28114
commit 9ee9e9c6de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -210,7 +210,7 @@ class ApiTool(Tool):
) )
return response return response
else: else:
raise ValueError(f"Invalid http method {self.method}") raise ValueError(f"Invalid http method {method}")
def _convert_body_property_any_of( def _convert_body_property_any_of(
self, property: dict[str, Any], value: Any, any_of: list[dict[str, Any]], max_recursive=10 self, property: dict[str, Any], value: Any, any_of: list[dict[str, Any]], max_recursive=10