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)