From 16a107948b4d30a285d61ba73e555fe995b4302a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Wed, 12 Feb 2025 23:28:36 -0800 Subject: [PATCH] services: missing kwargs in anthropic/openai user context aggregator --- src/pipecat/services/anthropic.py | 4 ++-- src/pipecat/services/openai.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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)