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
address greptile review feedback (greploop iteration 1)
yuneng-jiangbf77a114cc67
diff --git a/litellm/proxy/hooks/proxy_track_cost_callback.py b/litellm/proxy/hooks/proxy_track_cost_callback.pyindex 80e202e9578..4941fcdd5dd 100644--- a/litellm/proxy/hooks/proxy_track_cost_callback.py+++ b/litellm/proxy/hooks/proxy_track_cost_callback.py@@ -291,6 +291,7 @@ class _ProxyDBLogger(CustomLogger):prisma_client=prisma_client,user_api_key_cache=user_api_key_cache,proxy_logging_obj=proxy_logging_obj,+ check_cache_only=True,)if metadata.get("user_api_key_alias") is None:metadata["user_api_key_alias"] = key_obj.key_alias