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]

Update utils.py (#5530)

OrangeWolf773914bcb72f
diff --git a/litellm/types/utils.py b/litellm/types/utils.py
index 72cc98b3e27..19282d195d2 100644
--- a/litellm/types/utils.py
+++ b/litellm/types/utils.py
@@ -503,7 +503,7 @@ class Usage(CompletionUsage):
if "prompt_cache_hit_tokens" in params and isinstance(
params["prompt_cache_hit_tokens"], int
):
- self._cache_read_input_tokens = params["prompt_cache_hit_tokens=0"]
+ self._cache_read_input_tokens = params["prompt_cache_hit_tokens"]
for k, v in params.items():
setattr(self, k, v)