You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{AnthropicBedrock}from'@anthropic-ai/bedrock-sdk';// Note: this assumes you have configured AWS credentials in a way// that the AWS Node SDK will recognise, typicaly a shared `~/.aws/credentials`// 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.htmlconstclient=newAnthropicBedrock();asyncfunctionmain(){constmessage=awaitclient.messages.create({model: 'anthropic.claude-3-5-sonnet-20241022-v2:0',messages: [{role: 'user',content: 'Hello!',},],max_tokens: 1024,});console.log(message);}main();
Why
Many start-ups and businesses use AWS and would prefer to use their (sometimes free) AWS credits to access Claude and other models instead of going direct to Anthropic and their APIs.
The text was updated successfully, but these errors were encountered:
What
AWS Bedrock offers access to Anthropic's Claude models.
And Anthropic provide an official NPM package to use it.
https://www.npmjs.com/package/@anthropic-ai/bedrock-sdk
Why
Many start-ups and businesses use AWS and would prefer to use their (sometimes free) AWS credits to access Claude and other models instead of going direct to Anthropic and their APIs.
The text was updated successfully, but these errors were encountered: