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
feat(anthropic/messages): auto-inject advisor-tool-2026-03-01 beta header in /messages path
Ishaan Jaffered4aa8423537
diff --git a/litellm/llms/anthropic/experimental_pass_through/messages/transformation.py b/litellm/llms/anthropic/experimental_pass_through/messages/transformation.pyindex 9b60a58260b..d43350ec7e2 100644--- a/litellm/llms/anthropic/experimental_pass_through/messages/transformation.py+++ b/litellm/llms/anthropic/experimental_pass_through/messages/transformation.py@@ -324,6 +324,16 @@ class AnthropicMessagesConfig(BaseAnthropicMessagesConfig):if optional_params.get("speed") == "fast":beta_values.add(ANTHROPIC_BETA_HEADER_VALUES.FAST_MODE_2026_02_01.value)+ # Check for advisor tool+ tools = optional_params.get("tools")+ if tools:+ for tool in tools:+ if isinstance(tool, dict) and tool.get("type") == "advisor_20260301":+ beta_values.add(+ ANTHROPIC_BETA_HEADER_VALUES.ADVISOR_TOOL_2026_03_01.value+ )+ break+# Check for tool search toolstools = optional_params.get("tools")if tools: