From cb40a39a01fc037d2a8ec33df7fb0b7df0e008cf Mon Sep 17 00:00:00 2001 From: Paul Kompfner Date: Fri, 7 Nov 2025 11:44:44 -0500 Subject: [PATCH] Add missing explanatory comments to AWS and Anthropic that are present in the other LLM services --- src/pipecat/services/anthropic/llm.py | 2 ++ src/pipecat/services/aws/llm.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/pipecat/services/anthropic/llm.py b/src/pipecat/services/anthropic/llm.py index 0adc2a0d1..2e3e0272d 100644 --- a/src/pipecat/services/anthropic/llm.py +++ b/src/pipecat/services/anthropic/llm.py @@ -493,6 +493,8 @@ class AnthropicLLMService(LLMService): elif isinstance(frame, LLMContextFrame): context = frame.context elif isinstance(frame, LLMMessagesFrame): + # NOTE: LLMMessagesFrame is deprecated, so we don't support the newer universal + # LLMContext with it context = AnthropicLLMContext.from_messages(frame.messages) elif isinstance(frame, LLMUpdateSettingsFrame): await self._update_settings(frame.settings) diff --git a/src/pipecat/services/aws/llm.py b/src/pipecat/services/aws/llm.py index 716aee776..ccbac43b7 100644 --- a/src/pipecat/services/aws/llm.py +++ b/src/pipecat/services/aws/llm.py @@ -1167,6 +1167,8 @@ class AWSBedrockLLMService(LLMService): if isinstance(frame, LLMContextFrame): context = frame.context elif isinstance(frame, LLMMessagesFrame): + # NOTE: LLMMessagesFrame is deprecated, so we don't support the newer universal + # LLMContext with it context = AWSBedrockLLMContext.from_messages(frame.messages) elif isinstance(frame, LLMUpdateSettingsFrame): await self._update_settings(frame.settings)