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(guardrails): cover nameless evaluated entries in the malformed usage batch

yucheng33fb6625ade5
diff --git a/tests/test_litellm/proxy/guardrails/test_usage_tracking.py b/tests/test_litellm/proxy/guardrails/test_usage_tracking.py
index 13a53efcb27..69ec098b840 100644
--- a/tests/test_litellm/proxy/guardrails/test_usage_tracking.py
+++ b/tests/test_litellm/proxy/guardrails/test_usage_tracking.py
@@ -414,7 +414,7 @@ async def test_malformed_not_run_entry_does_not_drop_the_batch():
"guardrail_information": [
{"guardrail_name": ["not", "a", "string"], "guardrail_status": "success"},
{"guardrail_name": "", "guardrail_id": "cf-uuid", "guardrail_status": "success"},
- {"guardrail_status": "not_run"},
+ {"guardrail_status": "success"},
]
}
)