From 610d1c9bad6b5afa2338ebb659f0c124ba24c7c4 Mon Sep 17 00:00:00 2001 From: Smeet Agrawal Date: Thu, 9 Apr 2026 11:17:06 +0530 Subject: [PATCH] fix: remove inconsistent haiku_4_5 underscore variant from structured output allowlist The underscore variant has no evidence of real usage in the codebase or Anthropic's model naming conventions. All existing model name formats (standard, Bedrock, provider-prefixed) contain the dash form 'haiku-4-5' as a substring, which is already covered. The underscore entry breaks the pattern set by all other model entries (sonnet, opus) which only use dash and dot forms. Co-Authored-By: Claude Sonnet 4.6 --- litellm/llms/anthropic/chat/transformation.py | 1 - 1 file changed, 1 deletion(-) diff --git a/litellm/llms/anthropic/chat/transformation.py b/litellm/llms/anthropic/chat/transformation.py index 558c11d8420..855d0a2fdfd 100644 --- a/litellm/llms/anthropic/chat/transformation.py +++ b/litellm/llms/anthropic/chat/transformation.py @@ -991,7 +991,6 @@ class AnthropicConfig(AnthropicModelInfo, BaseConfig): for substring in { "haiku-4-5", "haiku-4.5", - "haiku_4_5", "sonnet-4.5", "sonnet-4-5", "opus-4.1",