fix(router.py): give an 'info' log when fallbacks work successfully

This commit is contained in:
Krrish Dholakia 2024-05-13 10:17:32 -07:00
parent 13e1577753
commit 7f6e933372
2 changed files with 7 additions and 0 deletions

View file

@ -1444,6 +1444,9 @@ class Router:
response = await self.async_function_with_retries(
*args, **kwargs
)
verbose_router_logger.info(
"Successful fallback b/w models."
)
return response
except Exception as e:
pass
@ -1478,6 +1481,9 @@ class Router:
response = await self.async_function_with_fallbacks(
*args, **kwargs
)
verbose_router_logger.info(
"Successful fallback b/w models."
)
return response
except Exception as e:
raise e