Merge pull request #3003 from pipecat-ai/pk/fix-deprecation-warning-always-printed-on-set-bot-ready

Fix a deprecation warning printed every time `RTVIProcessor.set_bot_r…
This commit is contained in:
kompfner
2025-11-07 11:50:30 -05:00
committed by GitHub

View File

@@ -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):