Repository navigation
Semantic Kernel Bedrock Claude Error #6176
Replies: 4 comments 1 reply
|
hi all - facing the same issue. has there been any updates? For reference langchain had also faced this issue and resolved it. See below the issue and the fix implemented. langchain-ai/langchain-aws#403 (comment) |
|
Thanks for pasting the exact ValidationException text, and thanks to amardeepjaiman for the trace in #6479: its Two steps, and #6479 is the same failure. Claude on Converse sometimes returns Runs on autogen
Drop-in until the adapter has a guard: from autogen_ext.models.semantic_kernel import SKChatCompletionAdapter
class BedrockSafeSKAdapter(SKChatCompletionAdapter):
def _convert_to_chat_history(self, messages):
# Converse rejects messages with no content blocks and blank text blocks.
kept = [m for m in messages if not (isinstance(m.content, str) and not m.content.strip())]
return super()._convert_to_chat_history(kept)Where each step happens
The same filter at the top of the loop at |
Uh oh!
There was an error while loading. Please reload this page.
I am using the
SKChatCompletionAdapterwith various AWS Bedrock Claude models.I intermittently see the following error:
I am implementing this exactly as the docs show here just with bedrock.
It is not consistent but troublesome enough. I see what seems related issues, discussions related to this topic but can't find it verbatim. Seems like someone else surely has ran into this before. Please let me know any suggestions you have. Thanks!
All reactions