Skip to content

Conversation

@HoussamOtarid
Copy link

@HoussamOtarid HoussamOtarid commented Sep 8, 2025

Fixes #703

This PR adds AWS Bedrock as a new LLM provider to OpenSWE.
image

Changes

  • AWS Bedrock Integration

    • Added @langchain/aws dependency for Bedrock support
    • Added Bedrock to the list of supported providers
    • Implemented AWS credential handling (Access Key ID, Secret Access Key, Region)
    • Added Bedrock-specific model configurations for all LLM tasks
  • Model Support

    • Claude Sonnet 4 (us.anthropic.claude-sonnet-4-20250514-v1:0)
    • Claude Opus 4.1 (us.anthropic.claude-opus-4-1-20250805-v1:0)
    • Claude Opus 4 (us.anthropic.claude-opus-4-20250514-v1:0)
    • Claude 3.7 Sonnet (us.anthropic.claude-3-7-sonnet-20250219-v1:0)
    • Claude 3.5 Haiku (us.anthropic.claude-3-5-haiku-20241022-v1:0)
  • UI Updates

    • Added AWS Bedrock configuration section in API Keys settings
    • Support for configuring AWS credentials (Access Key ID, Secret Access Key, Region)
    • Updated API key validation to check for required Bedrock credentials
  • Configuration

    • Updated .env.example with AWS credential placeholders
    • Added Bedrock provider to model selection options
    • Ensured Bedrock uses Anthropic-compatible tool and message formats

Notes

  • Bedrock models use the same tool and message formatting as Anthropic models as I only added support Anthropic models
  • API Key settings page is a bit tricky to deal with as all supported providers have a single API key field, I tried to do minimal changes for supporting AWS Bedrock

@vercel
Copy link

vercel bot commented Sep 8, 2025

@HoussamOtarid is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

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.

Feature Request: Add Support for Amazon Bedrock

1 participant