From 65a1b296cb12b278d9d906c885ed62c2f79b4ad2 Mon Sep 17 00:00:00 2001 From: Ruiming Zhao Date: Fri, 14 Aug 2026 16:39:33 -0700 Subject: [PATCH] fix(anthropic): keep lint budget within ceiling for document write-back --- litellm/litellm_core_utils/prompt_templates/factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/litellm_core_utils/prompt_templates/factory.py b/litellm/litellm_core_utils/prompt_templates/factory.py index 574d53c8313..52762dc597e 100644 --- a/litellm/litellm_core_utils/prompt_templates/factory.py +++ b/litellm/litellm_core_utils/prompt_templates/factory.py @@ -2438,7 +2438,7 @@ def anthropic_messages_pt( anthropic_content_element=_document_content_element, original_content_element=m, ) - user_content.append(cast(AnthropicMessagesDocumentParam, _document_content_element)) + user_content.append(cast(AnthropicMessagesDocumentParam, _document_content_element)) # cast-ok: same union narrowing as above continue # Bedrock invoke models have format: invoke/... # Vertex AI Anthropic also doesn't support URL sources for images