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
test: cover forged _headroom_interception_converted_stream strip at the proxy boundary
mateo-berrif2f988bd577b
diff --git a/tests/test_litellm/proxy/test_litellm_pre_call_utils.py b/tests/test_litellm/proxy/test_litellm_pre_call_utils.pyindex 9fb31d2a6db..649bcbb6511 100644--- a/tests/test_litellm/proxy/test_litellm_pre_call_utils.py+++ b/tests/test_litellm/proxy/test_litellm_pre_call_utils.py@@ -1073,6 +1073,7 @@ async def test_key_metadata_enable_prompt_caching_promoted_to_request_root(key_v"_code_interpreter_interception_active","_code_interpreter_interception_converted_stream","_code_interpreter_interception_sandbox_key",+ "_headroom_interception_converted_stream","max_agentic_loops",],)@@ -1107,6 +1108,7 @@ async def test_add_litellm_data_to_request_strips_callback_control_fields("_code_interpreter_interception_active": True,"_code_interpreter_interception_converted_stream": True,"_code_interpreter_interception_sandbox_key": "forged-key",+ "_headroom_interception_converted_stream": True,"max_agentic_loops": 9999,}sample_value = sample_values[control_field]