aggregators: revert using intermediate results

This commit is contained in:
Aleix Conchillo Flaqué
2024-06-25 21:33:17 -07:00
parent dac033fe61
commit 4be3e8c87d

View File

@@ -13,6 +13,7 @@ from pipecat.frames.frames import (
Frame, Frame,
InterimTranscriptionFrame, InterimTranscriptionFrame,
LLMFullResponseEndFrame, LLMFullResponseEndFrame,
LLMFullResponseStartFrame,
LLMResponseEndFrame, LLMResponseEndFrame,
LLMResponseStartFrame, LLMResponseStartFrame,
LLMMessagesFrame, LLMMessagesFrame,
@@ -151,8 +152,8 @@ class LLMAssistantResponseAggregator(LLMResponseAggregator):
super().__init__( super().__init__(
messages=messages, messages=messages,
role="assistant", role="assistant",
start_frame=LLMResponseStartFrame, start_frame=LLMFullResponseStartFrame,
end_frame=LLMResponseEndFrame, end_frame=LLMFullResponseEndFrame,
accumulator_frame=TextFrame, accumulator_frame=TextFrame,
handle_interruptions=True handle_interruptions=True
) )