Bladeren bron

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 maanden geleden
bovenliggende
commit
96b1538b3e
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2
    2
      agent/component/invoke.py

+ 2
- 2
agent/component/invoke.py Bestand weergeven

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

Laden…
Annuleren
Opslaan