diff --git a/litellm/llms/anthropic/chat/guardrail_translation/handler.py b/litellm/llms/anthropic/chat/guardrail_translation/handler.py index 4aea5c8178f..4631d404476 100644 --- a/litellm/llms/anthropic/chat/guardrail_translation/handler.py +++ b/litellm/llms/anthropic/chat/guardrail_translation/handler.py @@ -251,9 +251,7 @@ class AnthropicMessagesHandler(BaseTranslation): block_text = block.get("text") if block_text is not None: texts_to_check.append(block_text) - task_mappings.append( - (msg_idx, int(content_idx)) - ) + task_mappings.append((msg_idx, int(content_idx))) # Extract images if content_item.get("type") == "image":