mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
style: ruff format
This commit is contained in:
parent
1fdb6e95a5
commit
b25920d9c9
2 changed files with 2 additions and 6 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue