Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for new bedrock models: Sonnet 3.5 v2.0 and Haiku 3.5 #18

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mcauthorn
Copy link

Added support for new (us-based, we don't need other regions for now) models using inference profiles.
New models:

  • Haiku 3.5 and
  • Sonnet 3.5 v2.0

@mcauthorn
Copy link
Author

Side note: this is my first pull request, so I'm not sure if I've done things right (e.g. I've renamed the file). At any rate, I hope this is useful to you, it's working well for us.

Important note: to test this you need to request model access in each of the regions for a given inference profile.

@jimmybutton
Copy link
Contributor

Hi @mcauthorn , thanks for your contribution!

Support for Claude 3.5 Sonnet v2 has already been added, see commit.

To add support for the new Claude 3.5 Haiku, adding the following lines should be sufficient:

# llm_bedrock_anthropic.py
    register(
        BedrockClaude("us.anthropic.claude-3-5-haiku-20241022-v1:0"),
        aliases=(
            "bedrock-claude-v3.5-haiku",
            "bedrock-haiku-v3.5",
            "bh-v3.5",
        ),
    )

No need to change the filename or anything in the pyproject.toml.

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.

2 participants