mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
fix: correct indentation of deep copy block in run_async_fallback
This commit is contained in:
parent
6e16156caa
commit
86520c1d75
1 changed files with 5 additions and 4 deletions
|
|
@ -124,13 +124,13 @@ async def run_async_fallback(
|
|||
if mg == original_model_group:
|
||||
continue
|
||||
try:
|
||||
# Deep copy kwargs to prevent mutations from one provider
|
||||
# Deep copy kwargs to prevent mutations from one provider
|
||||
# (e.g., Bedrock popping 'tools' from optional_params)
|
||||
# from corrupting kwargs for subsequent fallback providers.
|
||||
# See: https://github.com/BerriAI/litellm/issues/24764
|
||||
kwargs = safe_deep_copy(kwargs)
|
||||
|
||||
# LOGGING
|
||||
kwargs = safe_deep_copy(kwargs)
|
||||
|
||||
# LOGGING
|
||||
kwargs = litellm_router.log_retry(kwargs=kwargs, e=original_exception)
|
||||
verbose_router_logger.info(f"Falling back to model_group = {mg}")
|
||||
if isinstance(mg, str):
|
||||
|
|
@ -262,3 +262,4 @@ def run_non_standard_fallback_format(
|
|||
fallbacks: Union[List[str], List[Dict[str, Any]]], model_group: str
|
||||
):
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue