From a6502df72c8c1e2351679b543820b97417ebfb54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Thu, 13 Feb 2025 13:50:33 -0800 Subject: [PATCH] services: forgot to pass context instead of user aggregator --- src/pipecat/services/gemini_multimodal_live/gemini.py | 2 +- src/pipecat/services/google/google.py | 2 +- src/pipecat/services/grok.py | 2 +- src/pipecat/services/openai_realtime_beta/openai.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pipecat/services/gemini_multimodal_live/gemini.py b/src/pipecat/services/gemini_multimodal_live/gemini.py index 8479a4e0a..6e7a1c0fa 100644 --- a/src/pipecat/services/gemini_multimodal_live/gemini.py +++ b/src/pipecat/services/gemini_multimodal_live/gemini.py @@ -706,6 +706,6 @@ class GeminiMultimodalLiveLLMService(LLMService): GeminiMultimodalLiveContext.upgrade(context) user = GeminiMultimodalLiveUserContextAggregator(context) assistant = GeminiMultimodalLiveAssistantContextAggregator( - user, expect_stripped_words=assistant_expect_stripped_words + context, expect_stripped_words=assistant_expect_stripped_words ) return GeminiMultimodalLiveContextAggregatorPair(_user=user, _assistant=assistant) diff --git a/src/pipecat/services/google/google.py b/src/pipecat/services/google/google.py index de88050c0..605c74069 100644 --- a/src/pipecat/services/google/google.py +++ b/src/pipecat/services/google/google.py @@ -1174,7 +1174,7 @@ class GoogleLLMService(LLMService): ) -> GoogleContextAggregatorPair: user = GoogleUserContextAggregator(context) assistant = GoogleAssistantContextAggregator( - user, expect_stripped_words=assistant_expect_stripped_words + context, expect_stripped_words=assistant_expect_stripped_words ) return GoogleContextAggregatorPair(_user=user, _assistant=assistant) diff --git a/src/pipecat/services/grok.py b/src/pipecat/services/grok.py index 1d1eb40d7..064dd8829 100644 --- a/src/pipecat/services/grok.py +++ b/src/pipecat/services/grok.py @@ -212,6 +212,6 @@ class GrokLLMService(OpenAILLMService): ) -> GrokContextAggregatorPair: user = OpenAIUserContextAggregator(context) assistant = GrokAssistantContextAggregator( - user, expect_stripped_words=assistant_expect_stripped_words + context, expect_stripped_words=assistant_expect_stripped_words ) return GrokContextAggregatorPair(_user=user, _assistant=assistant) diff --git a/src/pipecat/services/openai_realtime_beta/openai.py b/src/pipecat/services/openai_realtime_beta/openai.py index a42ed7b9a..bc173d765 100644 --- a/src/pipecat/services/openai_realtime_beta/openai.py +++ b/src/pipecat/services/openai_realtime_beta/openai.py @@ -568,6 +568,6 @@ class OpenAIRealtimeBetaLLMService(LLMService): OpenAIRealtimeLLMContext.upgrade_to_realtime(context) user = OpenAIRealtimeUserContextAggregator(context) assistant = OpenAIRealtimeAssistantContextAggregator( - user, expect_stripped_words=assistant_expect_stripped_words + context, expect_stripped_words=assistant_expect_stripped_words ) return OpenAIContextAggregatorPair(_user=user, _assistant=assistant)