From 36b24209eb82f3413ec24d53eb7cdff3c293203b Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 13 Jul 2024 18:01:53 -0700 Subject: [PATCH] fix only use per request tracking if slack alerting is being used --- litellm/proxy/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 17fc2ac411..a7607fbadd 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -280,6 +280,10 @@ class ProxyLogging: async def update_request_status( self, litellm_call_id: str, status: Literal["success", "fail"] ): + # only use this if slack alerting is being used + if self.alerting is None: + return + await self.internal_usage_cache.async_set_cache( key="request_status:{}".format(litellm_call_id), value=status,