Skip to content

Commit 8274f4b

Browse files
linus-amgstainless-app[bot]
authored andcommitted
chore(docs): rename anthropic const to client (#471)
and use client
1 parent 5720534 commit 8274f4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/bedrock-sdk/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ import { AnthropicBedrock } from '@anthropic-ai/bedrock-sdk';
2323
// file or `AWS_ACCESS_KEY_ID` & `AWS_SECRET_ACCESS_KEY` environment variables.
2424
//
2525
// https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html
26-
const anthropic = new AnthropicBedrock();
26+
const client = new AnthropicBedrock();
2727

2828
async function main() {
29-
const message = await anthropic.messages.create({
29+
const message = await client.messages.create({
3030
model: 'anthropic.claude-3-sonnet-20240229-v1:0',
3131
messages: [
3232
{

0 commit comments

Comments
 (0)