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
Apply suggestion from @greptile-apps[bot]
Sameer Kankuteea518a76842a
diff --git a/litellm/llms/anthropic/chat/transformation.py b/litellm/llms/anthropic/chat/transformation.pyindex 5cbf014f8fb..686eec4032b 100644--- a/litellm/llms/anthropic/chat/transformation.py+++ b/litellm/llms/anthropic/chat/transformation.py@@ -656,14 +656,9 @@ class AnthropicConfig(AnthropicModelInfo, BaseConfig):new_v.append(v)if len(new_v) > 0:new_stop = new_v- return new_stop-- @staticmethod- def _map_reasoning_effort(- reasoning_effort: Optional[Union[REASONING_EFFORT, str]],- model: str,- ) -> Optional[AnthropicThinkingParam]:if AnthropicConfig._is_claude_opus_4_6(model):+ if reasoning_effort is None:+ return Nonereturn AnthropicThinkingParam(type="adaptive",)