瀏覽代碼

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..."

Loading…
取消
儲存