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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
add doc on spend report frequency
Ishaan Jaffecb774c3e8cf
diff --git a/docs/my-website/docs/proxy/alerting.md b/docs/my-website/docs/proxy/alerting.mdindex 257f5af81fe..15bd518edfe 100644--- a/docs/my-website/docs/proxy/alerting.md+++ b/docs/my-website/docs/proxy/alerting.md@@ -45,6 +45,7 @@ export SLACK_WEBHOOK_URL="https://hooks.slack.com/services/<>/<>/<>"general_settings:alerting: ["slack"]alerting_threshold: 300 # sends alerts if requests hang for 5min+ and responses take 5min++ spend_report_frequency: "1d" # [Optional] set as 1d, 2d, 30d .... Specifiy how often you want a Spend Report to be sent```Start proxy@@ -61,7 +62,9 @@ curl -X GET 'http://0.0.0.0:4000/health/services?service=slack' \-H 'Authorization: Bearer sk-1234'```-## Advanced - Redacting Messages from Alerts+## Advanced++### Redacting Messages from AlertsBy default alerts show the `messages/input` passed to the LLM. If you want to redact this from slack alerting set the following setting on your config@@ -76,7 +79,7 @@ litellm_settings:```-## Advanced - Add Metadata to alerts+### Add Metadata to alertsAdd alerting metadata to proxy calls for debugging.@@ -105,7 +108,7 @@ response = client.chat.completions.create(<Image img={require('../../img/alerting_metadata.png')}/>-## Advanced - Opting into specific alert types+### Opting into specific alert typesSet `alert_types` if you want to Opt into only specific alert types@@ -134,7 +137,7 @@ AlertType = Literal[```-## Advanced - set specific slack channels per alert type+### Set specific slack channels per alert typeUse this if you want to set specific channels per alert type@@ -190,7 +193,7 @@ curl -i http://localhost:4000/v1/chat/completions \```-## Advanced - provide multiple slack channels for a given alert type+### Provide multiple slack channels for a given alert typeJust add it like this - `alert_type: [<hook_url_channel_1>, <hook_url_channel_2>]`.@@ -220,7 +223,7 @@ curl -X GET 'http://0.0.0.0:4000/health/services?service=slack' \In case of error, check server logs for the error message!-## Advanced - Using MS Teams Webhooks+### Using MS Teams WebhooksMS Teams provides a slack compatible webhook url that you can use for alerting@@ -262,7 +265,7 @@ curl --location 'http://0.0.0.0:4000/health/services?service=slack' \<Image img={require('../../img/ms_teams_alerting.png')}/>-## Advanced - Using Discord Webhooks+### Using Discord WebhooksDiscord provides a slack compatible webhook url that you can use for alerting@@ -294,7 +297,7 @@ environment_variables:```-## Advanced - [BETA] Webhooks for Budget Alerts+## [BETA] Webhooks for Budget Alerts**Note**: This is a beta feature, so the spec might change.@@ -374,7 +377,7 @@ curl -X GET --location 'http://0.0.0.0:4000/health/services?service=webhook' \- `event_message` *str*: A human-readable description of the event.-## Advanced - Region-outage alerting (✨ Enterprise feature)+## Region-outage alerting (✨ Enterprise feature):::info[Get a free 2-week license](https://forms.gle/P518LXsAZ7PhXpDn8)diff --git a/litellm/proxy/proxy_config.yaml b/litellm/proxy/proxy_config.yamlindex f6942dd29eb..71a356b8043 100644--- a/litellm/proxy/proxy_config.yaml+++ b/litellm/proxy/proxy_config.yaml@@ -17,4 +17,6 @@ guardrails:general_settings:master_key: sk-1234+ alerting: ["slack"]+ spend_report_frequency: "1d"