mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
sendgrid docs
This commit is contained in:
parent
ca11264bbf
commit
cffd0ac350
2 changed files with 19 additions and 0 deletions
|
|
@ -818,6 +818,8 @@ router_settings:
|
|||
| SMTP_SENDER_LOGO | Logo used in emails sent via SMTP
|
||||
| SMTP_TLS | Flag to enable or disable TLS for SMTP connections
|
||||
| SMTP_USERNAME | Username for SMTP authentication (do not set if SMTP does not require auth)
|
||||
| SENDGRID_API_KEY | API key for SendGrid email service
|
||||
| SENDGRID_SENDER_EMAIL | Email address used as the sender in SendGrid email transactions
|
||||
| SPEND_LOGS_URL | URL for retrieving spend logs
|
||||
| SPEND_LOG_CLEANUP_BATCH_SIZE | Number of logs deleted per batch during cleanup. Default is 1000
|
||||
| SSL_CERTIFICATE | Path to the SSL certificate file
|
||||
|
|
|
|||
|
|
@ -68,6 +68,23 @@ litellm_settings:
|
|||
callbacks: ["resend_email"]
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="sendgrid" label="SendGrid API">
|
||||
|
||||
Add `sendgrid_email` to your proxy config.yaml under `litellm_settings`
|
||||
|
||||
set the following env variables
|
||||
|
||||
```shell showLineNumbers
|
||||
SENDGRID_API_KEY="SG.1234"
|
||||
SENDGRID_SENDER_EMAIL="notifications@your-domain.com"
|
||||
```
|
||||
|
||||
```yaml showLineNumbers title="proxy_config.yaml"
|
||||
litellm_settings:
|
||||
callbacks: ["sendgrid_email"]
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue