Skip to content

Commit 4cf3d72

Browse files
authored
Update default model to be Claude 4 Sonnet (strands-agents#467)
Co-authored-by: Mackenzie Zastrow <[email protected]>
1 parent d45c13b commit 4cf3d72

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ agent = Agent(tools=[calculator])
5555
agent("What is the square root of 1764")
5656
```
5757

58-
> **Note**: For the default Amazon Bedrock model provider, you'll need AWS credentials configured and model access enabled for Claude 3.7 Sonnet in the us-west-2 region. See the [Quickstart Guide](https://strandsagents.com/) for details on configuring other model providers.
58+
> **Note**: For the default Amazon Bedrock model provider, you'll need AWS credentials configured and model access enabled for Claude 4 Sonnet in the us-west-2 region. See the [Quickstart Guide](https://strandsagents.com/) for details on configuring other model providers.
5959
6060
## Installation
6161

src/strands/models/bedrock.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
logger = logging.getLogger(__name__)
2727

28-
DEFAULT_BEDROCK_MODEL_ID = "us.anthropic.claude-3-7-sonnet-20250219-v1:0"
28+
DEFAULT_BEDROCK_MODEL_ID = "us.anthropic.claude-sonnet-4-20250514-v1:0"
2929
DEFAULT_BEDROCK_REGION = "us-west-2"
3030

3131
BEDROCK_CONTEXT_WINDOW_OVERFLOW_MESSAGES = [
@@ -67,7 +67,7 @@ class BedrockConfig(TypedDict, total=False):
6767
guardrail_redact_output: Flag to redact output if guardrail is triggered. Defaults to False.
6868
guardrail_redact_output_message: If a Bedrock Output guardrail triggers, replace output with this message.
6969
max_tokens: Maximum number of tokens to generate in the response
70-
model_id: The Bedrock model ID (e.g., "us.anthropic.claude-3-7-sonnet-20250219-v1:0")
70+
model_id: The Bedrock model ID (e.g., "us.anthropic.claude-sonnet-4-20250514-v1:0")
7171
stop_sequences: List of sequences that will stop generation when encountered
7272
streaming: Flag to enable/disable streaming. Defaults to True.
7373
temperature: Controls randomness in generation (higher = more random)
@@ -432,7 +432,7 @@ def _stream(
432432
):
433433
e.add_note(
434434
"└ For more information see "
435-
"https://strandsagents.com/user-guide/concepts/model-providers/amazon-bedrock/#model-access-issue"
435+
"https://strandsagents.com/latest/user-guide/concepts/model-providers/amazon-bedrock/#model-access-issue"
436436
)
437437

438438
if (

tests/strands/models/test_bedrock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ async def test_add_note_on_access_denied_exception(bedrock_client, model, alist)
11481148
"└ Bedrock region: us-west-2",
11491149
"└ Model id: m1",
11501150
"└ For more information see "
1151-
"https://strandsagents.com/user-guide/concepts/model-providers/amazon-bedrock/#model-access-issue",
1151+
"https://strandsagents.com/latest/user-guide/concepts/model-providers/amazon-bedrock/#model-access-issue",
11521152
]
11531153

11541154

0 commit comments

Comments
 (0)