forked from phoenix/litellm-mirror
fix storing request status in mem
This commit is contained in:
parent
a99cb5deeb
commit
653aff6527
1 changed files with 4 additions and 1 deletions
|
@ -284,11 +284,14 @@ class ProxyLogging:
|
||||||
if self.alerting is None:
|
if self.alerting is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# current alerting threshold
|
||||||
|
alerting_threshold = self.alerting_threshold or 120
|
||||||
|
|
||||||
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,
|
||||||
local_only=True,
|
local_only=True,
|
||||||
ttl=120,
|
ttl=alerting_threshold,
|
||||||
)
|
)
|
||||||
|
|
||||||
# The actual implementation of the function
|
# The actual implementation of the function
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue