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
Update utils.py (#5530)
OrangeWolf542b333c95e9
diff --git a/litellm/types/utils.py b/litellm/types/utils.pyindex 696fb5b837b..e9fe7d963b7 100644--- a/litellm/types/utils.py+++ b/litellm/types/utils.py@@ -504,7 +504,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)