Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix email health checks

Ishaan Jaff206acaae9e8e
diff --git a/litellm/proxy/health_endpoints/_health_endpoints.py b/litellm/proxy/health_endpoints/_health_endpoints.py
index b1f30e04aa3..ce80dc2883e 100644
--- a/litellm/proxy/health_endpoints/_health_endpoints.py
+++ b/litellm/proxy/health_endpoints/_health_endpoints.py
@@ -241,10 +241,8 @@ async def health_services_endpoint(
)
# use create task - this can take 10 seconds. don't keep ui users waiting for notification to check their email
- asyncio.create_task(
- proxy_logging_obj.slack_alerting_instance.send_key_created_or_user_invited_email(
- webhook_event=webhook_event
- )
+ await proxy_logging_obj.slack_alerting_instance.send_key_created_or_user_invited_email(
+ webhook_event=webhook_event
)
return {