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: Set ApiTool’s do_http_request to do not retry. (#26721)

jiangbo721fdb53fdeb1cf
diff --git a/api/core/tools/custom_tool/tool.py b/api/core/tools/custom_tool/tool.py
index 34d0f5c6228..f18f638f2d3 100644
--- a/api/core/tools/custom_tool/tool.py
+++ b/api/core/tools/custom_tool/tool.py
@@ -290,6 +290,7 @@ class ApiTool(Tool):
method_lc
]( # https://discuss.python.org/t/type-inference-for-function-return-types/42926
url,
+ max_retries=0,
params=params,
headers=headers,
cookies=cookies,