Add missing explanatory comments to AWS and Anthropic that are present in the other LLM services
This commit is contained in:
@@ -493,6 +493,8 @@ class AnthropicLLMService(LLMService):
|
|||||||
elif isinstance(frame, LLMContextFrame):
|
elif isinstance(frame, LLMContextFrame):
|
||||||
context = frame.context
|
context = frame.context
|
||||||
elif isinstance(frame, LLMMessagesFrame):
|
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)
|
context = AnthropicLLMContext.from_messages(frame.messages)
|
||||||
elif isinstance(frame, LLMUpdateSettingsFrame):
|
elif isinstance(frame, LLMUpdateSettingsFrame):
|
||||||
await self._update_settings(frame.settings)
|
await self._update_settings(frame.settings)
|
||||||
|
|||||||
@@ -1167,6 +1167,8 @@ class AWSBedrockLLMService(LLMService):
|
|||||||
if isinstance(frame, LLMContextFrame):
|
if isinstance(frame, LLMContextFrame):
|
||||||
context = frame.context
|
context = frame.context
|
||||||
elif isinstance(frame, LLMMessagesFrame):
|
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)
|
context = AWSBedrockLLMContext.from_messages(frame.messages)
|
||||||
elif isinstance(frame, LLMUpdateSettingsFrame):
|
elif isinstance(frame, LLMUpdateSettingsFrame):
|
||||||
await self._update_settings(frame.settings)
|
await self._update_settings(frame.settings)
|
||||||
|
|||||||
Reference in New Issue
Block a user