diff --git a/litellm/integrations/slack_alerting.py b/litellm/integrations/slack_alerting.py index 469b319a72..4f63a4ab05 100644 --- a/litellm/integrations/slack_alerting.py +++ b/litellm/integrations/slack_alerting.py @@ -18,6 +18,10 @@ from litellm.proxy._types import WebhookEvent import random +# we use this for the email header, please send a test email if you change this. verify it looks good on email +LITELLM_LOGO_URL = "https://litellm-listing.s3.amazonaws.com/litellm_logo.png" + + class LiteLLMBase(BaseModel): """ Implements default functions, all pydantic objects should have. @@ -785,7 +789,7 @@ Model Info: # make sure this is a premium user from litellm.proxy.proxy_server import premium_user - from litellm.proxy.proxy_server import CommonProxyErrors + from litellm.proxy.proxy_server import CommonProxyErrors, prisma_client if premium_user != True: raise Exception( @@ -800,9 +804,6 @@ Model Info: and recipient_user_id is not None and prisma_client is not None ): - # try looking up this info in DB - from litellm.proxy.proxy_server import prisma_client - user_row = await prisma_client.db.litellm_usertable.find_unique( where={"user_id": recipient_user_id} ) @@ -820,7 +821,7 @@ Model Info: "Trying to send email alert to no recipient", extra=webhook_event.dict() ) email_html_content = f""" -
Hi {recipient_email},
@@ -830,6 +831,8 @@ Model Info:
import openai @@ -850,7 +853,6 @@ Model Info:- Detailed Documentation on Usage with OpenAI Python SDK, Langchain, LlamaIndex, Curl If you have any questions, please send an email to support@berri.ai
Hi {user_name},