From e5c1daf3d2ace5eca8980b9d49fcc2c688fc07a2 Mon Sep 17 00:00:00 2001 From: Gennaro Malafronte <8798987+malafronte@users.noreply.github.com> Date: Mon, 27 Apr 2026 18:33:59 +0200 Subject: [PATCH] style(anthropic): format adapter transformation --- .../experimental_pass_through/adapters/transformation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py b/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py index c18d8e855e5..cfe52007c58 100644 --- a/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py +++ b/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py @@ -534,9 +534,9 @@ class LiteLLMAnthropicMessagesAdapter: ## ASSISTANT MESSAGE ## assistant_message_str: str | None = None - assistant_content_list: list[ - dict[str, Any] - ] = [] # For content blocks with cache_control + assistant_content_list: list[dict[str, Any]] = ( + [] + ) # For content blocks with cache_control has_cache_control_in_text = False tool_calls: list[ChatCompletionAssistantToolCall] = [] reasoning_content_parts: list[str] = []