mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
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:
@ -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("")
|
||||
Reference in New Issue
Block a user