浏览代码

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

### What problem does this PR solve?

https://github.com/infiniflow/ragflow/issues/9385
Based on my understanding, I think checking empty string is fine

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

---------

Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
tags/v0.20.2
Stephen Hu 2 个月前
父节点
当前提交
96b1538b3e
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      agent/component/invoke.py

+ 2
- 2
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..."
return "Waiting for the server respond..."

正在加载...
取消
保存