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]

bump: version 0.1.24 → 0.1.25

yuneng-jiang439d42ba6767
diff --git a/enterprise/litellm_enterprise/enterprise_callbacks/send_emails/sendgrid_email.py b/enterprise/litellm_enterprise/enterprise_callbacks/send_emails/sendgrid_email.py
index 33e00acd1bd..dfde9ce329a 100644
--- a/enterprise/litellm_enterprise/enterprise_callbacks/send_emails/sendgrid_email.py
+++ b/enterprise/litellm_enterprise/enterprise_callbacks/send_emails/sendgrid_email.py
@@ -32,6 +32,7 @@ class SendGridEmailLogger(BaseEmailLogger):
llm_provider=httpxSpecialProvider.LoggingCallback
)
self.sendgrid_api_key = os.getenv("SENDGRID_API_KEY")
+ self.sendgrid_sender_email = os.getenv("SENDGRID_SENDER_EMAIL")
verbose_logger.debug("SendGrid Email Logger initialized.")
async def send_email(
@@ -47,12 +48,13 @@ class SendGridEmailLogger(BaseEmailLogger):
if not self.sendgrid_api_key:
raise ValueError("SENDGRID_API_KEY is not set")
+ sender_email = self.sendgrid_sender_email or from_email
verbose_logger.debug(
- f"Sending email via SendGrid from {from_email} to {to_email} with subject {subject}"
+ f"Sending email via SendGrid from {sender_email} to {to_email} with subject {subject}"
)
payload = {
- "from": {"email": from_email},
+ "from": {"email": sender_email},
"personalizations": [
{
"to": [{"email": email} for email in to_email],
@@ -76,4 +78,4 @@ class SendGridEmailLogger(BaseEmailLogger):
verbose_logger.debug(
f"SendGrid response status={response.status_code}, body={response.text}"
)
- return
+ return
\ No newline at end of file
diff --git a/enterprise/pyproject.toml b/enterprise/pyproject.toml
index 31da7702d7f..2bcd8d33adc 100644
--- a/enterprise/pyproject.toml
+++ b/enterprise/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "litellm-enterprise"
-version = "0.1.24"
+version = "0.1.25"
description = "Package for LiteLLM Enterprise features"
authors = ["BerriAI"]
readme = "README.md"
@@ -22,7 +22,7 @@ requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.commitizen]
-version = "0.1.24"
+version = "0.1.25"
version_files = [
"pyproject.toml:version",
"../requirements.txt:litellm-enterprise==",
diff --git a/poetry.lock b/poetry.lock
index dea637fa14b..007d8228367 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -3076,15 +3076,15 @@ openai = ["openai (>=0.27.8)"]
[[package]]
name = "litellm-enterprise"
-version = "0.1.23"
+version = "0.1.24"
description = "Package for LiteLLM Enterprise features"
optional = true
python-versions = "!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,>=3.8"
groups = ["main"]
markers = "extra == \"proxy\""
files = [
- {file = "litellm_enterprise-0.1.23-py3-none-any.whl", hash = "sha256:d803ce3ef79494f21447368f1f4e05669183714e5081da9c27a05b1770eb1422"},
- {file = "litellm_enterprise-0.1.23.tar.gz", hash = "sha256:0171e1d10c10b29e663d03a6b84c77465e58fd1923ecd0f89796622ffb5c7bb0"},
+ {file = "litellm_enterprise-0.1.24-py3-none-any.whl", hash = "sha256:82548d0377282c8491d695e6b891e0930910ab410ac10f01773c13c263ecef3f"},
+ {file = "litellm_enterprise-0.1.24.tar.gz", hash = "sha256:e009b9e1be09735c58458b356a9d2b942f468b4a934c0cb6ace8c43c6f43ba0f"},
]
[[package]]
@@ -7989,4 +7989,4 @@ utils = ["numpydoc"]
[metadata]
lock-version = "2.1"
python-versions = ">=3.9,<4.0"
-content-hash = "fec0ac9f9222e9952c6244bf874fac20201ac1e14e435d3201611ab4f882c4d7"
+content-hash = "ddc452ea7bacb386fe494f5a2b8f6bfa4715eb0a16ce43c23cff731076b2cc67"
diff --git a/pyproject.toml b/pyproject.toml
index c4d9eec29b8..8093ad98761 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -61,7 +61,7 @@ redisvl = {version = "^0.4.1", optional = true, markers = "python_version >= '3.
mcp = {version = "^1.21.2", optional = true, python = ">=3.10"}
litellm-proxy-extras = {version = "0.4.12", optional = true}
rich = {version = "13.7.1", optional = true}
-litellm-enterprise = {version = "0.1.24", optional = true}
+litellm-enterprise = {version = "0.1.25", optional = true}
diskcache = {version = "^5.6.1", optional = true}
polars = {version = "^1.31.0", optional = true, python = ">=3.10"}
semantic-router = {version = ">=0.1.12", optional = true, python = ">=3.9,<3.14"}
diff --git a/requirements.txt b/requirements.txt
index 633107916d9..0293d5579a5 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -64,4 +64,4 @@ soundfile==0.12.1 # for audio file processing
########################
# LITELLM ENTERPRISE DEPENDENCIES
########################
-litellm-enterprise==0.1.24
+litellm-enterprise==0.1.25