mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-24 20:29:31 +00:00
fix storing request status in mem
This commit is contained in:
@@ -284,11 +284,14 @@ class ProxyLogging:
|
||||
if self.alerting is None:
|
||||
return
|
||||
|
||||
# current alerting threshold
|
||||
alerting_threshold = self.alerting_threshold or 120
|
||||
|
||||
await self.internal_usage_cache.async_set_cache(
|
||||
key="request_status:{}".format(litellm_call_id),
|
||||
value=status,
|
||||
local_only=True,
|
||||
ttl=120,
|
||||
ttl=alerting_threshold,
|
||||
)
|
||||
|
||||
# The actual implementation of the function
|
||||
|
||||
Reference in New Issue
Block a user