mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
Potential fix for pull request finding 'CodeQL / Cyclic import'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
0a1ded5d54
commit
fdcab4dc55
1 changed files with 1 additions and 2 deletions
|
|
@ -590,7 +590,6 @@ class ResetBudgetJob:
|
|||
For keys and teams with budget_limits, reset any individual windows where
|
||||
reset_at <= now. Only the expired windows are reset; other windows are untouched.
|
||||
"""
|
||||
from litellm.proxy.proxy_server import spend_counter_cache
|
||||
|
||||
now = 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 = True
|
||||
if changed:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue