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: gate the already-hashed pass-through on the provenance flag
mateo-berri9697748f92d1
diff --git a/tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py b/tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.pyindex 706466d5033..e34d4f389e1 100644--- a/tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py+++ b/tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py@@ -2927,7 +2927,7 @@ class TestSpendLogKeyRedaction:def test_already_hashed_key_unchanged(self):hashed = "bcfe8173f5447f10be0e7fb37aaa8b97829d5c9e0498232152f9d123456789ab"- assert _redact_logged_api_key(hashed) == hashed+ assert _redact_logged_api_key(hashed, already_hashed=True) == hasheddef test_bearer_prefixed_non_sk_key_is_hashed(self):raw = "Bearer some-other-token-format"