Skip to content

Support thinking config for Bedrock hosted Claude models#12

Open
varunpandey23 wants to merge 1 commit into
mainfrom
scratch/support-thinking-bedrock
Open

Support thinking config for Bedrock hosted Claude models#12
varunpandey23 wants to merge 1 commit into
mainfrom
scratch/support-thinking-bedrock

Conversation

@varunpandey23
Copy link
Copy Markdown
Collaborator

@varunpandey23 varunpandey23 commented May 8, 2026

Changes:

  • Upgrade langchain-aws and use ChatBedrockConverse to support extended and adaptive thinking
  • Extract text content from model response, as Claude models with thinking returns a list as the content.

Example model configuration:

{
    "llm_provider": "aws_bedrock",
    "llm_model": "us.anthropic.claude-sonnet-4-6",
    "llm_api_key": "not_needed",
    "temperature": 1.0,
    "max_tokens": 16000,
    "reasoning": {"type": "adaptive"}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant