forked from phoenix/litellm-mirror
fix calculate correct alerting threshold
This commit is contained in:
parent
6c918f2373
commit
3736152e7d
1 changed files with 4 additions and 1 deletions
|
@ -285,8 +285,11 @@ class ProxyLogging:
|
||||||
return
|
return
|
||||||
|
|
||||||
# current alerting threshold
|
# current alerting threshold
|
||||||
|
alerting_threshold: float = self.alerting_threshold
|
||||||
|
|
||||||
# add a 100 second buffer to the alerting threshold
|
# add a 100 second buffer to the alerting threshold
|
||||||
alerting_threshold = self.alerting_threshold or 120 + 100
|
# ensures we don't send errant hanging request slack alerts
|
||||||
|
alerting_threshold += 100
|
||||||
|
|
||||||
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),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue