refine get_input (#2630)

### What problem does this PR solve?

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2024-09-27 20:20:36 +08:00
committed by GitHub
parent a246e5644b
commit 674d342761
2 changed files with 3 additions and 8 deletions

View File

@ -33,9 +33,4 @@ class Concentrator(ComponentBase, ABC):
component_name = "Concentrator"
def _run(self, history, **kwargs):
input = self.get_input()
ans = " - ".join(input["content"]) if "content" in input else ""
if not ans:
return Concentrator.be_output("")
return Concentrator.be_output(input)
return Concentrator.be_output("")