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
docs(anthropic): clarify the Opus 4.5 branch in adaptive-effort translation
Abhimanyu Kapura34f098fe540
diff --git a/litellm/llms/anthropic/experimental_pass_through/messages/transformation.py b/litellm/llms/anthropic/experimental_pass_through/messages/transformation.pyindex 39713e0f003..01412d3c8b2 100644--- a/litellm/llms/anthropic/experimental_pass_through/messages/transformation.py+++ b/litellm/llms/anthropic/experimental_pass_through/messages/transformation.py@@ -329,6 +329,11 @@ class AnthropicMessagesConfig(BaseAnthropicMessagesConfig):if effort is None and not adaptive_thinking:return+ # Models that natively accept `output_config.effort` but are not adaptive (Claude Opus 4.5).+ # Keep the native effort and only drop the adaptive `thinking` block, which these models+ # reject. Effort-only requests pass through so provider subclasses (bedrock/vertex) keep+ # owning level clamping; an adaptive request only stays here when its effort level is one+ # the model supports, otherwise it falls through to the legacy budget translation below.if AnthropicConfig._model_supports_effort_param(model, custom_llm_provider) and (not adaptive_thinkingor AnthropicConfig._validate_effort_for_model(model, effort, custom_llm_provider) is None