Skip to content

Commit

Permalink
Updated to include Bedrock chat model (#287)
Browse files Browse the repository at this point in the history
Minor update to README, to refer to ChatBedrock instead of BedrockLLM.
  • Loading branch information
3coins authored Nov 22, 2024
1 parent 1bf6ba5 commit 28f3718
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ pip install langchain-aws
Here's a simple example of how to use the `langchain-aws` package.

```python
from langchain_aws import BedrockLLM
from langchain_aws import ChatBedrock

# Initialize the Bedrock LLM
llm = BedrockLLM(
model_id="anthropic.claude-v2:1"
# Initialize the Bedrock chat model
llm = ChatBedrock(
model="anthropic.claude-3-sonnet-20240229-v1:0",
beta_use_converse_api=True
)

# Invoke the llm
Expand Down

0 comments on commit 28f3718

Please sign in to comment.