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.

Do not pass query parameter when the value is empty (#7585)

Amose42848f4b707
diff --git a/api/core/tools/tool/api_tool.py b/api/core/tools/tool/api_tool.py
index 69e3dfa0612..38f10032e22 100644
--- a/api/core/tools/tool/api_tool.py
+++ b/api/core/tools/tool/api_tool.py
@@ -144,7 +144,7 @@ class ApiTool(Tool):
path_params[parameter['name']] = value
elif parameter['in'] == 'query':
- params[parameter['name']] = value
+ if value !='': params[parameter['name']] = value
elif parameter['in'] == 'cookie':
cookies[parameter['name']] = value