Skip to content

Commit 78db957

Browse files
committed
feat: Use Claude 3.7 Sonnet in chatbots and e2e tests
1 parent e3f8216 commit 78db957

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

DEVELOP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The example chatbot client will communicate with seven servers:
3131
First, install the [AWS CDK CLI](https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html#getting_started_install).
3232

3333
Request [Bedrock model access](https://us-west-2.console.aws.amazon.com/bedrock/home?region=us-west-2#/modelaccess)
34-
to Anthropic Claude 3.5 Sonnet v2 in region us-west-2.
34+
to Anthropic Claude 3.7 Sonnet in region us-west-2.
3535

3636
Note that the examples will be deployed to us-east-2 by default.
3737
You will need to search and replace 'us-east-2' if you want to choose a different region.

e2e_tests/python/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Configuration:
3535

3636
def __init__(
3737
self,
38-
model_id="anthropic.claude-3-5-sonnet-20241022-v2:0",
38+
model_id="us.anthropic.claude-3-7-sonnet-20250219-v1:0",
3939
region="us-west-2",
4040
) -> None:
4141
"""Initialize configuration."""

e2e_tests/setup/integ-test-authentication.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Resources:
100100
Action:
101101
- "bedrock:InvokeModel"
102102
Resource:
103-
- "arn:aws:bedrock:us-west-2::foundation-model/anthropic.claude-3-5-sonnet-20241022-v2:0"
103+
- "arn:aws:bedrock:*::foundation-model/anthropic.claude-3-7-sonnet-20250219-v1:0"
104104
- Effect: Allow
105105
Action:
106106
- "secretsmanager:GetSecretValue"

e2e_tests/typescript/src/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class Configuration {
1212
* Initialize configuration.
1313
*/
1414
constructor(
15-
modelId: string = "anthropic.claude-3-5-sonnet-20241022-v2:0",
15+
modelId: string = "us.anthropic.claude-3-7-sonnet-20250219-v1:0",
1616
region: string = "us-west-2"
1717
) {
1818
this.modelId = modelId;

examples/chatbots/python/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Configuration:
3535

3636
def __init__(
3737
self,
38-
model_id="anthropic.claude-3-5-sonnet-20241022-v2:0",
38+
model_id="us.anthropic.claude-3-7-sonnet-20250219-v1:0",
3939
region="us-west-2",
4040
) -> None:
4141
"""Initialize configuration."""
@@ -102,9 +102,7 @@ async def main() -> None:
102102
servers.extend(
103103
[
104104
LambdaFunctionUrlClient(name, LambdaFunctionUrlConfig(**srv_config))
105-
for name, srv_config in server_config.get(
106-
"lambdaFunctionUrls", {}
107-
).items()
105+
for name, srv_config in server_config.get("lambdaFunctionUrls", {}).items()
108106
]
109107
)
110108

examples/chatbots/typescript/src/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class Configuration {
1212
* Initialize configuration.
1313
*/
1414
constructor(
15-
modelId: string = "anthropic.claude-3-5-sonnet-20241022-v2:0",
15+
modelId: string = "us.anthropic.claude-3-7-sonnet-20250219-v1:0",
1616
region: string = "us-west-2"
1717
) {
1818
this.modelId = modelId;

0 commit comments

Comments
 (0)