The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Fix black formatting
Sameer Kankutef503c061a59e
diff --git a/litellm/llms/anthropic/chat/transformation.py b/litellm/llms/anthropic/chat/transformation.pyindex 4a6743b74be..9aaaa39fd7a 100644--- a/litellm/llms/anthropic/chat/transformation.py+++ b/litellm/llms/anthropic/chat/transformation.py@@ -1584,9 +1584,7 @@ class AnthropicConfig(AnthropicModelInfo, BaseConfig):extra_content: Optional[str] = (json_msg.content if json_msg is not None else None)- filtered_tools = [- t for i, t in enumerate(tool_calls) if i not in json_indices- ]+ filtered_tools = [t for i, t in enumerate(tool_calls) if i not in json_indices]return None, filtered_tools, extra_contentdef _transform_response_for_json_mode(