From 2ce9402571bc800becd93f9926f9983ec56e922b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Fri, 14 Feb 2025 15:51:03 -0800 Subject: [PATCH] LLMAssistantResponseAggregator: initialize messages --- src/pipecat/processors/aggregators/llm_response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/processors/aggregators/llm_response.py b/src/pipecat/processors/aggregators/llm_response.py index 950c155e6..c12b0d90b 100644 --- a/src/pipecat/processors/aggregators/llm_response.py +++ b/src/pipecat/processors/aggregators/llm_response.py @@ -420,7 +420,7 @@ class LLMUserResponseAggregator(LLMUserContextAggregator): class LLMAssistantResponseAggregator(LLMAssistantContextAggregator): - def __init__(self, messages: List[dict], **kwargs): + def __init__(self, messages: List[dict] = [], **kwargs): super().__init__(context=OpenAILLMContext(messages), **kwargs) async def push_aggregation(self):