|
11 | 11 |
|
12 | 12 | # Model ID used for prompt-caching TTL integration tests. Per |
13 | 13 | # https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html |
14 | | -# the models that officially support 1h TTL on CachePoint are |
15 | | -# Claude Opus 4.5, Claude Haiku 4.5, and Claude Sonnet 4.5. Using Sonnet 4.5 |
16 | | -# here for longer expected support lifecycle than Haiku. |
17 | | -_CACHE_TTL_MODEL_ID = "us.anthropic.claude-sonnet-4-5-20250929-v1:0" |
| 14 | +# the models that officially support 1h TTL on CachePoint are Claude Opus 4.5, |
| 15 | +# Claude Haiku 4.5, and Claude Sonnet 4.5. Haiku 4.5 is the newest Haiku |
| 16 | +# available and is preferred for CI due to lower latency and cost relative to |
| 17 | +# the same-version Sonnet 4.5. Bump this when a newer Haiku is released that |
| 18 | +# supports CachePoint TTL. |
| 19 | +_CACHE_TTL_MODEL_ID = "us.anthropic.claude-haiku-4-5-20251001-v1:0" |
18 | 20 |
|
19 | 21 |
|
20 | 22 | @pytest.fixture |
@@ -596,7 +598,7 @@ def test_prompt_caching_cache_tools_ttl(): |
596 | 598 | prefix because Bedrock's tool-prefix cache threshold varies by model and region. |
597 | 599 | The critical behavior under test here is that the TTL field is accepted end-to-end. |
598 | 600 |
|
599 | | - Uses Claude Sonnet 4.5 which supports TTL in CachePointBlock on Bedrock per |
| 601 | + Uses Claude Haiku 4.5 which supports TTL in CachePointBlock on Bedrock per |
600 | 602 | https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html |
601 | 603 | (Claude Opus 4.5, Claude Haiku 4.5, and Claude Sonnet 4.5 all support 1h TTL). |
602 | 604 | """ |
@@ -633,7 +635,7 @@ def test_prompt_caching_cache_config_auto_with_ttl(): |
633 | 635 | Verifies that the cache point appended to the last user message by _inject_cache_point |
634 | 636 | carries the configured TTL, and that Bedrock accepts the request. |
635 | 637 |
|
636 | | - Uses Claude Sonnet 4.5 which supports TTL in CachePointBlock on Bedrock per |
| 638 | + Uses Claude Haiku 4.5 which supports TTL in CachePointBlock on Bedrock per |
637 | 639 | https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html |
638 | 640 | """ |
639 | 641 | model = BedrockModel( |
@@ -672,7 +674,7 @@ def test_prompt_caching_aligned_1h_ttl_across_checkpoints(): |
672 | 674 | This test sets 1h TTL on all three checkpoints simultaneously and verifies the |
673 | 675 | call succeeds. |
674 | 676 |
|
675 | | - Uses Claude Sonnet 4.5 which supports 1h TTL per |
| 677 | + Uses Claude Haiku 4.5 which supports 1h TTL per |
676 | 678 | https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html |
677 | 679 | """ |
678 | 680 | model = BedrockModel( |
|
0 commit comments