-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
From @snakingfire in #2040 (comment):
reasoning_model = BedrockConverseModel(
"us.anthropic.claude-sonnet-4-20250514-v1:0",
provider=BedrockProvider(bedrock_client=bedrock_client),
)
reasoning_model_settings = BedrockModelSettings(
parallel_tool_calls=True,
bedrock_additional_model_requests_fields={
"thinking": {"type": "enabled", "budget_tokens": 1024}
},
)
...
botocore.errorfactory.ValidationException: An error occurred (ValidationException) when calling the Converse operation: The model returned the following errors: messages.1.content.0.type: Expected
thinkingorredacted_thinking, but foundtext. Whenthinkingis enabled, a finalassistantmessage must start with a thinking block (preceeding the lastmost set oftool_useandtool_resultblocks). We recommend you include thinking blocks from previous turns. To avoid this requirement, disablethinking. Please consult our documentation at https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking
Like #2072 but for Bedrock
snakingfire
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working