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
chore: annotate headroom pre-call hook dict for the type-discipline budget
shivam1cf1a97b731f
diff --git a/litellm/proxy/guardrails/guardrail_hooks/headroom/headroom.py b/litellm/proxy/guardrails/guardrail_hooks/headroom/headroom.pyindex e4fe392b97f..2b34c0eeccb 100644--- a/litellm/proxy/guardrails/guardrail_hooks/headroom/headroom.py+++ b/litellm/proxy/guardrails/guardrail_hooks/headroom/headroom.py@@ -728,7 +728,11 @@ class HeadroomGuardrail(CustomGuardrail):return Noneif not has_headroom_retrieve_tool(kwargs.get("tools")):return None- return {**kwargs, "stream": False, HEADROOM_CONVERTED_STREAM_KEY: True}+ return { # mutable-ok: the hook contract is a plain dict the router merges into the request kwargs+ **kwargs,+ "stream": False,+ HEADROOM_CONVERTED_STREAM_KEY: True,+ }async def async_should_run_agentic_loop(self,