mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
(testing) add router unit testing for send_llm_exception_alert
, router_cooldown_event_callback
, cooldown utils (#6258)
* add router unit testing for send_llm_exception_alert * test router_cooldown_event_callback * test test_router_cooldown_event_callback_no_prometheus * test_router_cooldown_event_callback_no_deployment * test_router_cooldown_event_callback_no_deployment * add testing for test_should_run_cooldown_logic * test_increment_deployment_successes_for_current_minute_does_not_write_to_redis * test test_should_cooldown_deployment_allowed_fails_set_on_router * use helper for _is_allowed_fails_set_on_router * add complete testing for cooldown utils * move router unit tests * move router handle error * fix test_send_llm_exception_alert_no_logger
This commit is contained in:
parent
dee6de0105
commit
3ab2b86062
5 changed files with 564 additions and 26 deletions
|
@ -19,7 +19,8 @@ async def send_llm_exception_alert(
|
|||
original_exception,
|
||||
):
|
||||
"""
|
||||
Sends a Slack / MS Teams alert for the LLM API call failure.
|
||||
Only runs if router.slack_alerting_logger is set
|
||||
Sends a Slack / MS Teams alert for the LLM API call failure. Only if router.slack_alerting_logger is set.
|
||||
|
||||
Parameters:
|
||||
litellm_router_instance (_Router): The LitellmRouter instance.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue