mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
Merge pull request #4209 from BerriAI/litellm_send_email_alerts_budget_exceeded
[Feat] send email alerts when budget exceeded
This commit is contained in:
commit
4bfd46d0a6
7 changed files with 203 additions and 47 deletions
|
@ -1967,6 +1967,9 @@ async def send_email(receiver_email, subject, html):
|
|||
email_message["From"] = sender_email
|
||||
email_message["To"] = receiver_email
|
||||
email_message["Subject"] = subject
|
||||
verbose_proxy_logger.debug(
|
||||
"sending email from %s to %s", sender_email, receiver_email
|
||||
)
|
||||
|
||||
# Attach the body to the email
|
||||
email_message.attach(MIMEText(html, "html"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue