aggregators: fix LLMUserResponseAggregator passs-through
This commit is contained in:
@@ -133,8 +133,9 @@ class LLMResponseAggregator(FrameProcessor):
|
|||||||
self.aggregation = ""
|
self.aggregation = ""
|
||||||
yield self._end_frame()
|
yield self._end_frame()
|
||||||
yield LLMMessagesFrame(self.messages)
|
yield LLMMessagesFrame(self.messages)
|
||||||
elif isinstance(frame, self._accumulator_frame) and self.aggregating:
|
elif isinstance(frame, self._accumulator_frame):
|
||||||
self.aggregation += f" {frame.text}"
|
if self.aggregating:
|
||||||
|
self.aggregation += f" {frame.text}"
|
||||||
if self._pass_through:
|
if self._pass_through:
|
||||||
yield frame
|
yield frame
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user