From b490c289ca3133bbd8a350f253f8f1a0ba392117 Mon Sep 17 00:00:00 2001 From: Anand Taralika <46954145+taralika@users.noreply.github.com> Date: Sun, 12 May 2024 09:29:23 -0700 Subject: [PATCH] Removed "5" from the string since it's not guaranteed to always be 5, it will be at most 5, but could be less than 5 (if some values are 0s now that we ignore 0s) --- litellm/integrations/slack_alerting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/integrations/slack_alerting.py b/litellm/integrations/slack_alerting.py index 527c874d0d..788b099ffa 100644 --- a/litellm/integrations/slack_alerting.py +++ b/litellm/integrations/slack_alerting.py @@ -393,7 +393,7 @@ class SlackAlerting(CustomLogger): # format alert -> return the litellm model name + api base message = f"\n\nHere are today's key metrics 📈: \n\n" - message += "\n\n*❗️ Top 5 Deployments with Most Failed Requests:*\n\n" + message += "\n\n*❗️ Top Deployments with Most Failed Requests:*\n\n" if not top_5_failed: message += "\tNone\n" for i in range(len(top_5_failed)): @@ -415,7 +415,7 @@ class SlackAlerting(CustomLogger): value = replaced_failed_values[top_5_failed[i]] message += f"\t{i+1}. Deployment: `{deployment_name}`, Failed Requests: `{value}`, API Base: `{api_base}`\n" - message += "\n\n*😅 Top 5 Slowest Deployments:*\n\n" + message += "\n\n*😅 Top Slowest Deployments:*\n\n" if not top_5_slowest: message += "\tNone\n" for i in range(len(top_5_slowest)):