Skip to content

Commit

Permalink
chore(docs): rename anthropic const to client (#471)
Browse files Browse the repository at this point in the history
and use client
  • Loading branch information
linus-amg authored and stainless-app[bot] committed Jul 29, 2024
1 parent 5720534 commit 8274f4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bedrock-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import { AnthropicBedrock } from '@anthropic-ai/bedrock-sdk';
// file or `AWS_ACCESS_KEY_ID` & `AWS_SECRET_ACCESS_KEY` environment variables.
//
// https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html
const anthropic = new AnthropicBedrock();
const client = new AnthropicBedrock();

async function main() {
const message = await anthropic.messages.create({
const message = await client.messages.create({
model: 'anthropic.claude-3-sonnet-20240229-v1:0',
messages: [
{
Expand Down

0 comments on commit 8274f4b

Please sign in to comment.