Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix:HTTP request component failed to retrieve the corresponding value (#9399)

Stephen Hu96b1538b3e9f
diff --git a/agent/component/invoke.py b/agent/component/invoke.py
index a4aa981917..cb313925b8 100644
--- a/agent/component/invoke.py
+++ b/agent/component/invoke.py
@@ -57,7 +57,7 @@ class Invoke(ComponentBase, ABC):
def _invoke(self, **kwargs):
args = {}
for para in self._param.variables:
- if para.get("value") is not None:
+ if para.get("value"):
args[para["key"]] = para["value"]
else:
args[para["key"]] = self._canvas.get_variable_value(para["ref"])
@@ -139,4 +139,4 @@ class Invoke(ComponentBase, ABC):
assert False, self.output()
def thoughts(self) -> str:
- return "Waiting for the server respond..."
\ No newline at end of file
+ return "Waiting for the server respond..."