From 0e756bf0f80810e303d92043f0f966d3c2d7dbab Mon Sep 17 00:00:00 2001 From: Daniel JB Clark Date: Sat, 3 Oct 2026 13:58:26 -0400 Subject: [PATCH] test(clinepass): expect context-window and content-policy recognition clinepass is mapped by _map_openai_exception, the same path as openai, mistral and runwayml, so a full context window and a content-policy block reach the caller as ContextWindowExceededError / ContentPolicyViolationError. The per-provider tests added upstream pin that set, and clinepass was missing from it. Co-Authored-By: Claude Sonnet 5.5 --- tests/unit/litellm_core_utils/test_exception_mapping_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/litellm_core_utils/test_exception_mapping_utils.py b/tests/unit/litellm_core_utils/test_exception_mapping_utils.py index 8a68ffd7d9b..70d45891948 100644 --- a/tests/unit/litellm_core_utils/test_exception_mapping_utils.py +++ b/tests/unit/litellm_core_utils/test_exception_mapping_utils.py @@ -1049,6 +1049,7 @@ PROVIDERS_THAT_RECOGNISE_A_FULL_CONTEXT_WINDOW = ( "anthropic", "azure", "azure_ai", + "clinepass", "databricks", "deepseek", "fireworks_ai", @@ -1067,6 +1068,7 @@ PROVIDERS_THAT_RECOGNISE_A_CONTENT_POLICY_BLOCK = ( "ai21", "azure", "azure_ai", + "clinepass", "deepseek", "fireworks_ai", "groq",