Skip to content

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]

test(vertex-passthrough): send the virtual key via x-litellm-api-key in streaming tests

mateo-berria8f24c856820
diff --git a/tests/test_litellm/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py b/tests/test_litellm/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py
index 243aadfc981..4ace18c927b 100644
--- a/tests/test_litellm/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py
+++ b/tests/test_litellm/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py
@@ -3311,6 +3311,7 @@ class TestVertexRawPredictStreamingClassification:
"path": f"/vertex_ai/{endpoint}",
"headers": [
(b"content-type", b"application/json"),
+ (b"x-litellm-api-key", b"test-key"),
(b"authorization", b"Bearer ya29.byo-google-oauth"),
],
"query_string": b"",