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]

mark test_cost_tracking_with_caching as flaky

Ishaan Jaffef47b2bc877d
diff --git a/litellm/tests/test_custom_logger.py b/litellm/tests/test_custom_logger.py
index 465012bffb5..c4208b734d5 100644
--- a/litellm/tests/test_custom_logger.py
+++ b/litellm/tests/test_custom_logger.py
@@ -418,6 +418,7 @@ async def test_async_custom_handler_embedding_optional_param_bedrock():
@pytest.mark.asyncio
[email protected](retries=3, delay=1)
async def test_cost_tracking_with_caching():
"""
Important Test - This tests if that cost is 0 for cached responses