From 93c9cc4a0e7dbd27f9d5adcbcb76215b35184bbf Mon Sep 17 00:00:00 2001 From: Paul Kompfner Date: Wed, 7 May 2025 12:03:23 -0400 Subject: [PATCH] [WIP] AWS Nova Sonic service - minor fix --- src/pipecat/services/aws_nova_sonic/aws.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/services/aws_nova_sonic/aws.py b/src/pipecat/services/aws_nova_sonic/aws.py index 4056d0ed0..eab12272c 100644 --- a/src/pipecat/services/aws_nova_sonic/aws.py +++ b/src/pipecat/services/aws_nova_sonic/aws.py @@ -669,7 +669,7 @@ class AWSNovaSonicLLMService(LLMService): # The overall completion is wrapped by "completionStart" and "completionEnd" events. async def _receive_task_handler(self): try: - while self._client and not self._disconnecting: + while self._stream and not self._disconnecting: output = await self._stream.await_output() result = await output[1].receive()