Skip to content

Commit 1391c69

Browse files
committed
apigw-lambda-bedrock-js-sam: Update model name for docs
1 parent 59d9445 commit 1391c69

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

apigw-lambda-bedrock-js-sam/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Amazon API Gateway to AWS Lambda to Amazon Bedrock using AWS SDK for JS and SAM
22

3-
This sample project deploys an Amazon API Gateway REST API with an AWS Lambda integration. The Lambda function is written in TypeScript, calls the Amazon Bedrock API for Anthropic Claude-v2 model and returns a response containing the generated content.
3+
This sample project deploys an Amazon API Gateway REST API with an AWS Lambda integration. The Lambda function is written in TypeScript, calls the Amazon Bedrock API for Anthropic Claude Sonnet 4.5 model and returns a response containing the generated content.
44

55
Learn more about this pattern at Serverless Land Patterns: https://serverlessland.com/patterns/apigw-lambda-bedrock-js-sam
66

@@ -100,16 +100,16 @@ Amazon Bedrock users need to request access to models before they are available
100100
101101
## How it works
102102
103-
This SAM project uses Amazon Bedrock API for Anthropic Claude-v2 model to generate content based on given prompt. This is exposed through a serverless REST API. Please refer to the architecture diagram below:
103+
This SAM project uses Amazon Bedrock API for Anthropic Claude Sonnet 4.5 model to generate content based on given prompt. This is exposed through a serverless REST API. Please refer to the architecture diagram below:
104104
![End to End Architecture](images/architecture.png)
105105
106106
Here's a breakdown of the steps:
107107

108108
1. **Amazon API Gateway**: Receives the HTTP POST request containing the prompt.
109109

110-
2. **AWS Lambda**: Triggered by the API Gateway, this function forwards the prompt to Amazon Bedrock API using boto3 bedrock-runtime API. It uses Anthropic Claude-v2 model and sets other required parameters to fixed values for simplicity.
110+
2. **AWS Lambda**: Triggered by the API Gateway, this function forwards the prompt to Amazon Bedrock API using boto3 bedrock-runtime API. It uses Anthropic Claude Sonnet 4.5 model and sets other required parameters to fixed values for simplicity.
111111

112-
3. **Amazon Bedrock**: Based on the given prompt, using Anthropic Claude-v2 model generates the content and returns the response to Lambda.
112+
3. **Amazon Bedrock**: Based on the given prompt, using Anthropic Claude Sonnet 4.5 model generates the content and returns the response to Lambda.
113113

114114
4. **Response**: Lambda processes the Bedrock output and sends it back to the user via the API Gateway.
115115

apigw-lambda-bedrock-js-sam/example-pattern.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"headline": "How it works",
99
"text": [
1010
"Amazon API Gateway receives the HTTP POST request containing a text which will is taken as a prompt.",
11-
"AWS Lambda is triggered by the API Gateway, this function forwards the prompt to Amazon Bedrock API using AWS SDK for javascript bedrock-runtime API. It uses Anthropic Claude-v2 model and sets other required parameters to fixed values for simplicity.",
12-
"Based on the given prompt, using Anthropic Claude-v2 model, Amazon Bedrock generates the content and returns the response to Lambda.",
11+
"AWS Lambda is triggered by the API Gateway, this function forwards the prompt to Amazon Bedrock API using AWS SDK for javascript bedrock-runtime API. It uses Anthropic Claude Sonnet 4.5 model and sets other required parameters to fixed values for simplicity.",
12+
"Based on the given prompt, using Anthropic Claude Sonnet 4.5 model, Amazon Bedrock generates the content and returns the response to Lambda.",
1313
"Lambda processes the Bedrock output and sends it back to the user via the API Gateway."
1414
]
1515
},

0 commit comments

Comments
 (0)