diff --git a/litellm/caching/redis_cache.py b/litellm/caching/redis_cache.py index 19e904e60e9..a217200f77d 100644 --- a/litellm/caching/redis_cache.py +++ b/litellm/caching/redis_cache.py @@ -1431,9 +1431,7 @@ class RedisCache(BaseCache): ) result = cast( "str | bytes", - await _redis_client.eval( - lua, 1, key, str(new_base), str(snapshot), str(int(_used_ttl or 0)) - ), + await _redis_client.eval(lua, 1, key, str(new_base), str(snapshot), str(int(_used_ttl or 0))), ) if isinstance(result, bytes): result = result.decode() diff --git a/litellm/proxy/common_utils/reset_budget_job.py b/litellm/proxy/common_utils/reset_budget_job.py index f7edba6fd1d..5c0c6deb9be 100644 --- a/litellm/proxy/common_utils/reset_budget_job.py +++ b/litellm/proxy/common_utils/reset_budget_job.py @@ -552,9 +552,7 @@ class ResetBudgetJob: if redis_cache is None: return - snapshot = await ResetBudgetJob._snapshot_spend_counter( - redis_cache=redis_cache, counter_key=counter_key - ) + snapshot = await ResetBudgetJob._snapshot_spend_counter(redis_cache=redis_cache, counter_key=counter_key) if snapshot is not None and await ResetBudgetJob._reset_redis_spend_counter( redis_cache=redis_cache, counter_key=counter_key, new_spend=new_spend, snapshot=snapshot ):