fix(tests): use Sonnet 4.5 for Bedrock invoke prompt-caching tests

Claude 3.5 Sonnet v2 reached EOL on Bedrock 2026-03-01, returning the same
404 EOL error as 3.7 Sonnet. Sonnet 4.5 supports both InvokeModel and
Converse APIs on Bedrock, so use the same model for both routes.
This commit is contained in:
Ryan Crabbe
2026-04-28 14:51:47 -07:00
parent dc46467235
commit b1a0a3fc17
2 changed files with 2 additions and 2 deletions
@@ -97,7 +97,7 @@ class BaseAnthropicMessagesPromptCachingTest(ABC):
Examples:
- "bedrock/converse/anthropic.claude-sonnet-4-5-20250929-v1:0"
- "bedrock/invoke/anthropic.claude-3-5-sonnet-20241022-v2:0"
- "bedrock/invoke/anthropic.claude-sonnet-4-5-20250929-v1:0"
"""
pass
@@ -43,4 +43,4 @@ class TestBedrockInvokePromptCaching(BaseAnthropicMessagesPromptCachingTest):
"""
def get_model(self) -> str:
return "bedrock/invoke/us.anthropic.claude-3-5-sonnet-20241022-v2:0"
return "bedrock/invoke/us.anthropic.claude-sonnet-4-5-20250929-v1:0"