From dfd495b5ec669f7ee3abc992d8961b04131447a0 Mon Sep 17 00:00:00 2001 From: yihong0618 Date: Sat, 21 Dec 2024 16:09:42 +0800 Subject: [PATCH] fix: self.method should method in api_tool.py Signed-off-by: yihong0618 --- api/core/tools/tool/api_tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/tools/tool/api_tool.py b/api/core/tools/tool/api_tool.py index 636debffd46f05..48aac75dbb4115 100644 --- a/api/core/tools/tool/api_tool.py +++ b/api/core/tools/tool/api_tool.py @@ -210,7 +210,7 @@ def do_http_request( ) return response else: - raise ValueError(f"Invalid http method {self.method}") + raise ValueError(f"Invalid http method {method}") def _convert_body_property_any_of( self, property: dict[str, Any], value: Any, any_of: list[dict[str, Any]], max_recursive=10