mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(cooldown_cache.py): fix linting errors
This commit is contained in:
parent
5572ad7241
commit
cd7dd2a511
1 changed files with 3 additions and 3 deletions
|
@ -89,7 +89,7 @@ class CooldownCache:
|
|||
# Process the results
|
||||
for model_id, result in zip(model_ids, results):
|
||||
if result and isinstance(result, dict):
|
||||
cooldown_cache_value = CooldownCacheValue(**result)
|
||||
cooldown_cache_value = CooldownCacheValue(**result) # type: ignore
|
||||
active_cooldowns.append((model_id, cooldown_cache_value))
|
||||
|
||||
return active_cooldowns
|
||||
|
@ -107,7 +107,7 @@ class CooldownCache:
|
|||
# Process the results
|
||||
for model_id, result in zip(model_ids, results):
|
||||
if result and isinstance(result, dict):
|
||||
cooldown_cache_value = CooldownCacheValue(**result)
|
||||
cooldown_cache_value = CooldownCacheValue(**result) # type: ignore
|
||||
active_cooldowns.append((model_id, cooldown_cache_value))
|
||||
|
||||
return active_cooldowns
|
||||
|
@ -125,7 +125,7 @@ class CooldownCache:
|
|||
# Process the results
|
||||
for model_id, result in zip(model_ids, results):
|
||||
if result and isinstance(result, dict):
|
||||
cooldown_cache_value = CooldownCacheValue(**result)
|
||||
cooldown_cache_value = CooldownCacheValue(**result) # type: ignore
|
||||
if cooldown_cache_value["cooldown_time"] < min_cooldown_time:
|
||||
min_cooldown_time = cooldown_cache_value["cooldown_time"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue