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.23 → 0.1.24

yuneng-jiangb5763d27eb43
diff --git a/enterprise/pyproject.toml b/enterprise/pyproject.toml
index 2305a5e635c..31da7702d7f 100644
--- a/enterprise/pyproject.toml
+++ b/enterprise/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "litellm-enterprise"
-version = "0.1.23"
+version = "0.1.24"
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.23"
+version = "0.1.24"
version_files = [
"pyproject.toml:version",
"../requirements.txt:litellm-enterprise==",
diff --git a/litellm/litellm_core_utils/custom_logger_registry.py b/litellm/litellm_core_utils/custom_logger_registry.py
index fdc9f374553..fa2ff42e1df 100644
--- a/litellm/litellm_core_utils/custom_logger_registry.py
+++ b/litellm/litellm_core_utils/custom_logger_registry.py
@@ -102,6 +102,9 @@ class CustomLoggerRegistry:
from litellm_enterprise.enterprise_callbacks.send_emails.resend_email import (
ResendEmailLogger,
)
+ from litellm_enterprise.enterprise_callbacks.send_emails.sendgrid_email import (
+ SendGridEmailLogger,
+ )
from litellm_enterprise.enterprise_callbacks.send_emails.smtp_email import (
SMTPEmailLogger,
)
@@ -114,6 +117,7 @@ class CustomLoggerRegistry:
"pagerduty": PagerDutyAlerting,
"generic_api": GenericAPILogger,
"resend_email": ResendEmailLogger,
+ "sendgrid_email": SendGridEmailLogger,
"smtp_email": SMTPEmailLogger,
}
CALLBACK_CLASS_STR_TO_CLASS_TYPE.update(enterprise_loggers)
diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.py
index 2b52d58e29d..a0f6cbd7ea6 100644
--- a/litellm/litellm_core_utils/litellm_logging.py
+++ b/litellm/litellm_core_utils/litellm_logging.py
@@ -172,6 +172,9 @@ try:
from litellm_enterprise.enterprise_callbacks.send_emails.resend_email import (
ResendEmailLogger,
)
+ from litellm_enterprise.enterprise_callbacks.send_emails.sendgrid_email import (
+ SendGridEmailLogger,
+ )
from litellm_enterprise.enterprise_callbacks.send_emails.smtp_email import (
SMTPEmailLogger,
)
@@ -190,6 +193,7 @@ except Exception as e:
)
GenericAPILogger = CustomLogger # type: ignore
ResendEmailLogger = CustomLogger # type: ignore
+ SendGridEmailLogger = CustomLogger # type: ignore
SMTPEmailLogger = CustomLogger # type: ignore
PagerDutyAlerting = CustomLogger # type: ignore
EnterpriseCallbackControls = None # type: ignore
@@ -3873,6 +3877,13 @@ def _init_custom_logger_compatible_class( # noqa: PLR0915
resend_email_logger = ResendEmailLogger()
_in_memory_loggers.append(resend_email_logger)
return resend_email_logger # type: ignore
+ elif logging_integration == "sendgrid_email":
+ for callback in _in_memory_loggers:
+ if isinstance(callback, SendGridEmailLogger):
+ return callback
+ sendgrid_email_logger = SendGridEmailLogger()
+ _in_memory_loggers.append(sendgrid_email_logger)
+ return sendgrid_email_logger # type: ignore
elif logging_integration == "smtp_email":
for callback in _in_memory_loggers:
if isinstance(callback, SMTPEmailLogger):
@@ -4113,6 +4124,10 @@ def get_custom_logger_compatible_class( # noqa: PLR0915
for callback in _in_memory_loggers:
if isinstance(callback, ResendEmailLogger):
return callback
+ elif logging_integration == "sendgrid_email":
+ for callback in _in_memory_loggers:
+ if isinstance(callback, SendGridEmailLogger):
+ return callback
elif logging_integration == "smtp_email":
for callback in _in_memory_loggers:
if isinstance(callback, SMTPEmailLogger):
diff --git a/pyproject.toml b/pyproject.toml
index ab67697465e..c4d9eec29b8 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.23", optional = true}
+litellm-enterprise = {version = "0.1.24", 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 604e58132fb..633107916d9 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.23
+litellm-enterprise==0.1.24