From 4017bfa769ac293e51623b02ea57aa3915ef9eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Mon, 22 Dec 2025 21:44:20 -0800 Subject: [PATCH] LLMUserAggregator: improve turn_analyzer warning --- .../aggregators/llm_response_universal.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/pipecat/processors/aggregators/llm_response_universal.py b/src/pipecat/processors/aggregators/llm_response_universal.py index 8be62375b..86bbd9905 100644 --- a/src/pipecat/processors/aggregators/llm_response_universal.py +++ b/src/pipecat/processors/aggregators/llm_response_universal.py @@ -390,10 +390,20 @@ class LLMUserAggregator(LLMContextAggregator): if not frame.turn_params: return - logger.error( - f"{self}: turn_analyzer in base input transport is deprecated and " - "might result in unexpected behavior. Use PipelineTask's turn_start_strategies with " - "TurnAnalyzerBotTurnStartStrategy instead." + logger.warning( + f"{self}: `turn_analyzer` in base input transport is deprecated and " + "might result in unexpected behavior. Use `PipelineTask`'s `turn_start_strategies` with " + "`TurnAnalyzerBotTurnStartStrategy` instead.:\n\n" + " task = PipelineTask(\n" + " pipeline,\n" + " params=PipelineParams(\n" + " ...,\n" + " turn_start_strategies=TurnStartStrategies(\n" + " bot=[TurnAnalyzerBotTurnStartStrategy(turn_analyzer=LocalSmartTurnAnalyzerV3())]\n" + " ),\n" + " ),\n" + " ...,\n" + " )" ) async def _handle_transcription(self, frame: TranscriptionFrame):