mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix only use per request tracking if slack alerting is being used
This commit is contained in:
parent
bb690f21d2
commit
36b24209eb
1 changed files with 4 additions and 0 deletions
|
@ -280,6 +280,10 @@ class ProxyLogging:
|
||||||
async def update_request_status(
|
async def update_request_status(
|
||||||
self, litellm_call_id: str, status: Literal["success", "fail"]
|
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(
|
await self.internal_usage_cache.async_set_cache(
|
||||||
key="request_status:{}".format(litellm_call_id),
|
key="request_status:{}".format(litellm_call_id),
|
||||||
value=status,
|
value=status,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue