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
Correct litellm/litellm/llms/anthropic/chat/transformation.py
Sameer Kankute0934a4ab6827
diff --git a/litellm/llms/anthropic/chat/transformation.py b/litellm/llms/anthropic/chat/transformation.pyindex 9233c4a84b9..96160e79bb4 100644--- a/litellm/llms/anthropic/chat/transformation.py+++ b/litellm/llms/anthropic/chat/transformation.py@@ -172,7 +172,7 @@ class AnthropicConfig(AnthropicModelInfo, BaseConfig):@staticmethoddef _is_claude_opus_4_6(model: str) -> bool:- """Check if the model is Claude Opus 4.6."""+ """Check if the model is Claude Opus 4.5."""return "opus-4-6" in model.lower() or "opus_4_6" in model.lower()def get_supported_openai_params(self, model: str):@@ -656,9 +656,14 @@ 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",)