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
Potential fix for pull request finding 'CodeQL / Cyclic import'
ishaan-berrifdcab4dc5558
diff --git a/litellm/proxy/common_utils/reset_budget_job.py b/litellm/proxy/common_utils/reset_budget_job.pyindex 695facd704f..099d68209e0 100644--- a/litellm/proxy/common_utils/reset_budget_job.py+++ b/litellm/proxy/common_utils/reset_budget_job.py@@ -590,7 +590,6 @@ class ResetBudgetJob:For keys and teams with budget_limits, reset any individual windows wherereset_at <= now. Only the expired windows are reset; other windows are untouched."""- from litellm.proxy.proxy_server import spend_counter_cachenow = datetime.utcnow()@@ -608,7 +607,7 @@ class ResetBudgetJob:for window in windows:counter_key = f"spend:key:{key.token}:window:{window['budget_duration']}"if await ResetBudgetJob._reset_expired_window(- window, counter_key, spend_counter_cache, now+ window, counter_key, ProxyLogging.spend_counter_cache, now):changed = Trueif changed: