diff --git a/src/dailyai/pipeline/aggregators.py b/src/dailyai/pipeline/aggregators.py index 9edc87384..78b75afbe 100644 --- a/src/dailyai/pipeline/aggregators.py +++ b/src/dailyai/pipeline/aggregators.py @@ -133,8 +133,9 @@ async def process_frame(self, frame: Frame) -> AsyncGenerator[Frame, None]: self.aggregation = "" yield self._end_frame() yield LLMMessagesFrame(self.messages) - elif isinstance(frame, self._accumulator_frame) and self.aggregating: - self.aggregation += f" {frame.text}" + elif isinstance(frame, self._accumulator_frame): + if self.aggregating: + self.aggregation += f" {frame.text}" if self._pass_through: yield frame else: