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(pass-through): grant allowed_passthrough_routes so langfuse auth=true test reaches rpm path

Yuneng Jiang432d99f3ee31
diff --git a/tests/local_testing/test_pass_through_endpoints.py b/tests/local_testing/test_pass_through_endpoints.py
index 68ba62bcbab..eeb29dea531 100644
--- a/tests/local_testing/test_pass_through_endpoints.py
+++ b/tests/local_testing/test_pass_through_endpoints.py
@@ -402,7 +402,9 @@ async def test_aaapass_through_endpoint_pass_through_keys_langfuse(
mock_api_key = "sk-my-test-key"
cache_value = UserAPIKeyAuth(
- token=hash_token(mock_api_key), rpm_limit=rpm_limit
+ token=hash_token(mock_api_key),
+ rpm_limit=rpm_limit,
+ metadata={"allowed_passthrough_routes": ["/api/public/ingestion"]},
)
_cohere_api_key = os.environ.get("COHERE_API_KEY")