aggregators: uses intermediate results for LLMAssistantResponseAggregator

This commit is contained in:
Aleix Conchillo Flaqué
2024-06-24 17:33:45 -07:00
parent 0b6a19802f
commit beced68337

View File

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