Add missing explanatory comments to AWS and Anthropic that are present in the other LLM services

This commit is contained in:
Paul Kompfner
2025-11-07 11:44:44 -05:00
parent 6feecf05f7
commit cb40a39a01
2 changed files with 4 additions and 0 deletions

View File

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

View File

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