From e288aa047b424fd5e7df18ebac6db4c2e959bbf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Thu, 11 Apr 2024 08:10:56 -0700 Subject: [PATCH] examples: use LLMUserResponseAggregator with VAD --- examples/foundational/06-listen-and-respond.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/examples/foundational/06-listen-and-respond.py b/examples/foundational/06-listen-and-respond.py index 3bd2a34f8..73e9f3c6e 100644 --- a/examples/foundational/06-listen-and-respond.py +++ b/examples/foundational/06-listen-and-respond.py @@ -10,8 +10,8 @@ from dailyai.services.elevenlabs_ai_service import ElevenLabsTTSService from dailyai.services.open_ai_services import OpenAILLMService from dailyai.services.ai_services import FrameLogger from dailyai.pipeline.aggregators import ( - LLMAssistantContextAggregator, - LLMUserContextAggregator, + LLMAssistantResponseAggregator, + LLMUserResponseAggregator, ) from runner import configure @@ -55,11 +55,9 @@ async def main(room_url: str, token): }, ] - tma_in = LLMUserContextAggregator( - messages, transport._my_participant_id) - tma_out = LLMAssistantContextAggregator( - messages, transport._my_participant_id - ) + tma_in = LLMUserResponseAggregator(messages) + tma_out = LLMAssistantResponseAggregator(messages) + pipeline = Pipeline( processors=[ fl,