Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

yihong9ee9e9c6de52
diff --git a/api/core/tools/tool/api_tool.py b/api/core/tools/tool/api_tool.py
index 636debffd46..48aac75dbb4 100644
--- a/api/core/tools/tool/api_tool.py
+++ b/api/core/tools/tool/api_tool.py
@@ -210,7 +210,7 @@ class ApiTool(Tool):
)
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