From 10f1c314b6b70d112445dc9b939c0b4002d564ab Mon Sep 17 00:00:00 2001 From: Paul Kompfner Date: Fri, 7 Nov 2025 11:27:58 -0500 Subject: [PATCH] Fix a deprecation warning printed every time `RTVIProcessor.set_bot_ready()` is called --- src/pipecat/processors/frameworks/rtvi.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pipecat/processors/frameworks/rtvi.py b/src/pipecat/processors/frameworks/rtvi.py index 08d127ef6..f04cbd395 100644 --- a/src/pipecat/processors/frameworks/rtvi.py +++ b/src/pipecat/processors/frameworks/rtvi.py @@ -1314,7 +1314,11 @@ class RTVIProcessor(FrameProcessor): async def set_bot_ready(self): """Mark the bot as ready and send the bot-ready message.""" self._bot_ready = True - await self._update_config(self._config, False) + # Only call the (deprecated) _update_config method if the we're using a + # config (which is deprecated). Otherwise we'd always print an + # unnecessary deprecation warning. + if self._config.config: + await self._update_config(self._config, False) await self._send_bot_ready() async def interrupt_bot(self):