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):