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]

Remove comment about prompt-cache usage in test

pokepoke81732e23a4f914
diff --git a/tests/test_litellm/llms/databricks/chat/test_databricks_chat_transformation.py b/tests/test_litellm/llms/databricks/chat/test_databricks_chat_transformation.py
index d6b8e1a3652..165046a2298 100644
--- a/tests/test_litellm/llms/databricks/chat/test_databricks_chat_transformation.py
+++ b/tests/test_litellm/llms/databricks/chat/test_databricks_chat_transformation.py
@@ -444,9 +444,6 @@ def _streaming_chunk(usage=None, choices=None):
ids=["warm_cache_read", "cold_cache_write"],
)
def test_chunk_parser_surfaces_prompt_cache_usage(cache_read, cache_creation, expected_cached, expected_written):
- """Databricks returns Anthropic prompt-cache counts in the streaming usage object,
- but chunk_parser dropped usage entirely, so cache-aware pricing never reached the
- cost calculator and every streamed request was billed at the full input rate."""
iterator = DatabricksChatResponseIterator(streaming_response=None, sync_stream=True)
result = iterator.chunk_parser(