litellm-enterprise 0.1.24__py3-none-any.whl → 0.1.25__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- litellm_enterprise/enterprise_callbacks/send_emails/sendgrid_email.py +5 -3
- {litellm_enterprise-0.1.24.dist-info → litellm_enterprise-0.1.25.dist-info}/METADATA +1 -1
- {litellm_enterprise-0.1.24.dist-info → litellm_enterprise-0.1.25.dist-info}/RECORD +5 -5
- {litellm_enterprise-0.1.24.dist-info → litellm_enterprise-0.1.25.dist-info}/WHEEL +0 -0
- {litellm_enterprise-0.1.24.dist-info → litellm_enterprise-0.1.25.dist-info}/licenses/LICENSE.md +0 -0
|
@@ -32,6 +32,7 @@ class SendGridEmailLogger(BaseEmailLogger):
|
|
|
32
32
|
llm_provider=httpxSpecialProvider.LoggingCallback
|
|
33
33
|
)
|
|
34
34
|
self.sendgrid_api_key = os.getenv("SENDGRID_API_KEY")
|
|
35
|
+
self.sendgrid_sender_email = os.getenv("SENDGRID_SENDER_EMAIL")
|
|
35
36
|
verbose_logger.debug("SendGrid Email Logger initialized.")
|
|
36
37
|
|
|
37
38
|
async def send_email(
|
|
@@ -47,12 +48,13 @@ class SendGridEmailLogger(BaseEmailLogger):
|
|
|
47
48
|
if not self.sendgrid_api_key:
|
|
48
49
|
raise ValueError("SENDGRID_API_KEY is not set")
|
|
49
50
|
|
|
51
|
+
sender_email = self.sendgrid_sender_email or from_email
|
|
50
52
|
verbose_logger.debug(
|
|
51
|
-
f"Sending email via SendGrid from {
|
|
53
|
+
f"Sending email via SendGrid from {sender_email} to {to_email} with subject {subject}"
|
|
52
54
|
)
|
|
53
55
|
|
|
54
56
|
payload = {
|
|
55
|
-
"from": {"email":
|
|
57
|
+
"from": {"email": sender_email},
|
|
56
58
|
"personalizations": [
|
|
57
59
|
{
|
|
58
60
|
"to": [{"email": email} for email in to_email],
|
|
@@ -76,4 +78,4 @@ class SendGridEmailLogger(BaseEmailLogger):
|
|
|
76
78
|
verbose_logger.debug(
|
|
77
79
|
f"SendGrid response status={response.status_code}, body={response.text}"
|
|
78
80
|
)
|
|
79
|
-
return
|
|
81
|
+
return
|
|
@@ -102,7 +102,7 @@ litellm_enterprise/enterprise_callbacks/secrets_plugins/zendesk_secret_key.py,sh
|
|
|
102
102
|
litellm_enterprise/enterprise_callbacks/send_emails/base_email.py,sha256=w4omD5Z7gMZABxn7DmAlOiCX6f7VwJ1KMKq_NXpdkLc,15523
|
|
103
103
|
litellm_enterprise/enterprise_callbacks/send_emails/endpoints.py,sha256=hOEpM_q8MJAXlKMOtC9KbgvDVr_YFtF3reu9bjXkpsI,7017
|
|
104
104
|
litellm_enterprise/enterprise_callbacks/send_emails/resend_email.py,sha256=lLG9W2hEOjn7lvMDKoaZGVCzr72HfreJuScMNOkE7FQ,1426
|
|
105
|
-
litellm_enterprise/enterprise_callbacks/send_emails/sendgrid_email.py,sha256=
|
|
105
|
+
litellm_enterprise/enterprise_callbacks/send_emails/sendgrid_email.py,sha256=_mHj-gBQlt1c-AUa5QPkVdCaM-ZIF7VolZFl6NKNHgc,2203
|
|
106
106
|
litellm_enterprise/enterprise_callbacks/send_emails/smtp_email.py,sha256=_K3vGhyALVJWIzIk2oiHQbQPlYARdpPe-GA9hdl0vTg,1130
|
|
107
107
|
litellm_enterprise/integrations/custom_guardrail.py,sha256=ZLVpqUZq9bR0vEFqVrlTJk0bYCZuFsXlw9XsdyK9t2E,1555
|
|
108
108
|
litellm_enterprise/litellm_core_utils/litellm_logging.py,sha256=BKkQLPqebFbN-KeCbipGIPgdxHEfQkczImdhhzxKoFg,868
|
|
@@ -124,7 +124,7 @@ litellm_enterprise/proxy/vector_stores/endpoints.py,sha256=6Guh6zIH00dh2XXStn6Gb
|
|
|
124
124
|
litellm_enterprise/types/enterprise_callbacks/send_emails.py,sha256=XLhpdGvBFxPkV7hcgQ1gELVF0vTs5d2LLOoXPzjr4K4,1929
|
|
125
125
|
litellm_enterprise/types/proxy/audit_logging_endpoints.py,sha256=oSJVAuRD9r6ZjRCqNBFM-J5HSgOltsXts400b2aynRE,894
|
|
126
126
|
litellm_enterprise/types/proxy/proxy_server.py,sha256=kdhtxsU2uok6-XO_ebugCv7PzYYmGgv4vh-XemHJnpM,146
|
|
127
|
-
litellm_enterprise-0.1.
|
|
128
|
-
litellm_enterprise-0.1.
|
|
129
|
-
litellm_enterprise-0.1.
|
|
130
|
-
litellm_enterprise-0.1.
|
|
127
|
+
litellm_enterprise-0.1.25.dist-info/METADATA,sha256=7dqFeGY5D-oaWqwJsbvkaGKcC73bWpo9qc-Y4ugmjtg,1441
|
|
128
|
+
litellm_enterprise-0.1.25.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
129
|
+
litellm_enterprise-0.1.25.dist-info/licenses/LICENSE.md,sha256=nq3D9ZqOvRDT6hLkypQFTc3XsE15kbkg5rkkLJVSqKY,2251
|
|
130
|
+
litellm_enterprise-0.1.25.dist-info/RECORD,,
|
|
File without changes
|
{litellm_enterprise-0.1.24.dist-info → litellm_enterprise-0.1.25.dist-info}/licenses/LICENSE.md
RENAMED
|
File without changes
|