Skip to content

supports_tool_choice and other logic for Claude models with thinking enabled is incorrect #647

Description

@awg66

Here are the docs on extended thinking: https://docs.aws.amazon.com/bedrock/latest/userguide/claude-messages-extended-thinking.html

According to this, all Claude models with thinking enabled (3.7, 4 Opus, 4 Sonnet) should support a tool choice of "auto". And this is confirmed by manual testing. Yet the ChatBedrockConverse model does not support that tool choice for these models with thinking enabled

Additionally, much of the logic in tool binding and structured output that specifically checks if the model is 3.7 with thinking enabled hasn't been updated to also check if the model is a 4.0 Opus or Sonnet model with thinking enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions