From 963e0eabcb73d472498080e9bf87c6a62b52dfc4 Mon Sep 17 00:00:00 2001 From: Julio Quinteros Pro Date: Fri, 20 Feb 2026 11:07:52 -0300 Subject: [PATCH] fix(tests): update test_max_effort_rejected_for_opus_45 regex to match new error message The production error message was expanded when Sonnet 4.6 was also added as a supported model for effort='max'. The test's match regex still referenced the old "Claude Opus 4.6"-only message; update it to match the new "Claude 4.6 models" wording. Co-Authored-By: Claude Sonnet 4.6 --- .../llms/anthropic/chat/test_anthropic_chat_transformation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py b/tests/test_litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py index 8ebdfcb47b..5d7a02f90d 100644 --- a/tests/test_litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py +++ b/tests/test_litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py @@ -1662,7 +1662,7 @@ def test_max_effort_rejected_for_opus_45(): messages = [{"role": "user", "content": "Test"}] - with pytest.raises(ValueError, match="effort='max' is only supported by Claude Opus 4.6"): + with pytest.raises(ValueError, match="effort='max' is only supported by Claude 4.6 models"): optional_params = {"output_config": {"effort": "max"}} config.transform_request( model="claude-opus-4-5-20251101",