fix - dont send alert on fail request

This commit is contained in:
Ishaan Jaff 2024-04-22 16:07:58 -07:00
parent a30174ce31
commit d076aed9d0
2 changed files with 8 additions and 0 deletions

View file

@ -346,6 +346,7 @@ class ProxyLogging:
if (
request_data is not None
and request_data.get("litellm_status", "") != "success"
and request_data.get("litellm_status", "") != "fail"
):
if request_data.get("deployment", None) is not None and isinstance(
request_data["deployment"], dict