forked from phoenix/litellm-mirror
fix(router.py): set cooldown_time:
per model
This commit is contained in:
parent
e813e984f7
commit
d98e00d1e0
6 changed files with 72 additions and 11 deletions
|
@ -2816,7 +2816,9 @@ class Router:
|
|||
|
||||
exception_response = getattr(exception, "response", {})
|
||||
exception_headers = getattr(exception_response, "headers", None)
|
||||
_time_to_cooldown = self.cooldown_time
|
||||
_time_to_cooldown = kwargs.get("litellm_params", {}).get(
|
||||
"cooldown_time", self.cooldown_time
|
||||
)
|
||||
|
||||
if exception_headers is not None:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue