diff --git a/src/pipecat/services/anthropic.py b/src/pipecat/services/anthropic.py index 5a4799960..80b0b482e 100644 --- a/src/pipecat/services/anthropic.py +++ b/src/pipecat/services/anthropic.py @@ -651,8 +651,8 @@ class AnthropicLLMContext(OpenAILLMContext): class AnthropicUserContextAggregator(LLMUserContextAggregator): - def __init__(self, context: OpenAILLMContext | AnthropicLLMContext): - super().__init__(context=context) + def __init__(self, context: OpenAILLMContext | AnthropicLLMContext, **kwargs): + super().__init__(context=context, **kwargs) if isinstance(context, OpenAILLMContext): self._context = AnthropicLLMContext.from_openai_context(context) diff --git a/src/pipecat/services/openai.py b/src/pipecat/services/openai.py index 0cd5fc255..a5f52b69f 100644 --- a/src/pipecat/services/openai.py +++ b/src/pipecat/services/openai.py @@ -555,8 +555,8 @@ class OpenAIImageMessageFrame(Frame): class OpenAIUserContextAggregator(LLMUserContextAggregator): - def __init__(self, context: OpenAILLMContext): - super().__init__(context=context) + def __init__(self, context: OpenAILLMContext, **kwargs): + super().__init__(context=context, **kwargs) async def process_frame(self, frame, direction): await super().process_frame(frame, direction)