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

feat: support Claude v3 #131

Merged
merged 1 commit into from
May 14, 2024
Merged

feat: support Claude v3 #131

merged 1 commit into from
May 14, 2024

Conversation

jessieweiyi
Copy link
Contributor

@jessieweiyi jessieweiyi commented May 14, 2024

Description

This PR is to

  • Upgrade langchain version to support Claude v3
  • Replace the deprecated imports
  • Use BedrockChat in the langchain for bedrock models to use Message API
  • Allow users to select bedrock models with both input and output supports Text

Does this PR introduce a breaking change?
No

Related Issues/Discussion

Once this PR is merged, we can integrate with @sperka's PR #130 to support response streaming.
Support of images will be the next step after the streaming integration.

How Has This Been Tested?

The following models have been tested:
"anthropic.claude-3-haiku-20240307-v1:0"
"anthropic.claude-3-sonnet-20240229-v1:0"
"anthropic.claude-v2"

  • What environment was this tested on?

pnpm: 8.15.8
node: v18.20.1
python: Python 3.10.14
poetry: Poetry (version 1.7.1)
docker: Docker version 26.0.0, build 2ae903e
java: openjdk 17.0.11 2024-04-16 LTS
OpenJDK Runtime Environment Corretto-17.0.11.9.1 (build 17.0.11+9-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.11.9.1 (build 17.0.11+9-LTS, mixed mode, sharing)
aws: aws-cli/2.15.37 Python/3.11.8 Darwin/23.4.0 exe/x86_64 prompt/off

Screensh

Screenshot 2024-05-14 at 2 48 05 PM

PR Checklist

  • [ ] Have you added/updated documentation?
  • [ ] Have you written new tests for your core changes, as applicable?
  • Have you successfully ran build and tests with your changes locally?

IMPORTANT: Please review the CONTRIBUTING.md file for detailed contributing guidelines.

Copy link
Contributor

@chn217 chn217 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good.

@chn217 chn217 merged commit c0cb406 into aws-samples:mainline May 14, 2024
3 checks passed
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