Skip to content

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]

style: black formatting

Cursor Agent47031c08d228
diff --git a/litellm/llms/anthropic/chat/transformation.py b/litellm/llms/anthropic/chat/transformation.py
index d890b78624f..49f0543b7e1 100644
--- a/litellm/llms/anthropic/chat/transformation.py
+++ b/litellm/llms/anthropic/chat/transformation.py
@@ -1152,8 +1152,7 @@ class AnthropicConfig(AnthropicModelInfo, BaseConfig):
f"'medium', 'high', 'xhigh', 'max', 'none'"
),
model=model,
- llm_provider=self.custom_llm_provider
- or "anthropic",
+ llm_provider=self.custom_llm_provider or "anthropic",
)
optional_params["output_config"] = {"effort": mapped_effort}
elif param == "web_search_options" and isinstance(value, dict):