mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
style: run ruff format on fallback_event_handlers
This commit is contained in:
parent
f7b1cc1f41
commit
2de33555ea
1 changed files with 3 additions and 1 deletions
|
|
@ -412,7 +412,9 @@ async def run_async_fallback(
|
|||
# LOGGING
|
||||
kwargs = litellm_router.log_retry(kwargs=kwargs, e=original_exception)
|
||||
verbose_router_logger.info("Falling back to model_group = %s", mask_sensitive_structure(mg))
|
||||
kwargs = {k: v for k, v in kwargs.items() if k != "_target_order"} # rebind-ok: next hop must not inherit the previous order target
|
||||
kwargs = {
|
||||
k: v for k, v in kwargs.items() if k != "_target_order"
|
||||
} # rebind-ok: next hop must not inherit the previous order target
|
||||
if isinstance(mg, str):
|
||||
kwargs["model"] = mg
|
||||
elif isinstance(mg, dict):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue