diff --git a/tests/local_testing/test_function_calling.py b/tests/local_testing/test_function_calling.py index 02affa1d57c..da1301f2c73 100644 --- a/tests/local_testing/test_function_calling.py +++ b/tests/local_testing/test_function_calling.py @@ -155,11 +155,13 @@ def test_aaparallel_function_call(model): # test_parallel_function_call() +# $BEDROCK_ANTHROPIC_MODEL holds the full bedrock-prefixed model path, set in +# CircleCI project env vars. EOL bumps are a CI UI change. Required to be set. @pytest.mark.parametrize( "model", [ "anthropic/claude-4-sonnet-20250514", - "bedrock/us.anthropic.claude-sonnet-4-5-20250929-v1:0", + os.environ["BEDROCK_ANTHROPIC_MODEL"], ], ) @pytest.mark.flaky(retries=3, delay=1) diff --git a/tests/pass_through_unit_tests/test_anthropic_messages_prompt_caching.py b/tests/pass_through_unit_tests/test_anthropic_messages_prompt_caching.py index a194ded12fd..c6ea5bed2c8 100644 --- a/tests/pass_through_unit_tests/test_anthropic_messages_prompt_caching.py +++ b/tests/pass_through_unit_tests/test_anthropic_messages_prompt_caching.py @@ -21,6 +21,9 @@ from base_anthropic_messages_prompt_caching_test import ( BaseAnthropicMessagesPromptCachingTest, ) +# $BEDROCK_ANTHROPIC_{CONVERSE,INVOKE}_MODEL hold the full route-prefixed +# model paths, set in CircleCI project env vars. EOL bumps are a CI UI change. + class TestBedrockConversePromptCaching(BaseAnthropicMessagesPromptCachingTest): """ @@ -31,7 +34,7 @@ class TestBedrockConversePromptCaching(BaseAnthropicMessagesPromptCachingTest): """ def get_model(self) -> str: - return "bedrock/converse/us.anthropic.claude-sonnet-4-5-20250929-v1:0" + return os.environ["BEDROCK_ANTHROPIC_CONVERSE_MODEL"] class TestBedrockInvokePromptCaching(BaseAnthropicMessagesPromptCachingTest): @@ -43,4 +46,4 @@ class TestBedrockInvokePromptCaching(BaseAnthropicMessagesPromptCachingTest): """ def get_model(self) -> str: - return "bedrock/invoke/us.anthropic.claude-sonnet-4-5-20250929-v1:0" + return os.environ["BEDROCK_ANTHROPIC_INVOKE_MODEL"]