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]

tag budgets fixes

Ishaan Jaff9c30387e6613
diff --git a/docs/my-website/docs/proxy/provider_budget_routing.md b/docs/my-website/docs/proxy/provider_budget_routing.md
index c5b6bca3a18..ff43d2787a4 100644
--- a/docs/my-website/docs/proxy/provider_budget_routing.md
+++ b/docs/my-website/docs/proxy/provider_budget_routing.md
@@ -270,7 +270,13 @@ Expected response on failure
</Tabs>
-## Tag Budgets
+## ✨ Tag Budgets
+
+:::info
+
+✨ This is an Enterprise only feature [Get Started with Enterprise here](https://www.litellm.ai/#pricing)
+
+:::
Use this to set budgets for tags - example $10/day for tag=`product:chat-bot`, $100/day for tag=`product:chat-bot-2`
diff --git a/litellm/router_strategy/budget_limiter.py b/litellm/router_strategy/budget_limiter.py
index cb74692a637..a11c3cf09dc 100644
--- a/litellm/router_strategy/budget_limiter.py
+++ b/litellm/router_strategy/budget_limiter.py
@@ -796,6 +796,12 @@ class RouterBudgetLimiting(CustomLogger):
def _init_tag_budgets(self):
if litellm.tag_budget_config is None:
return
+ from litellm.proxy.proxy_server import CommonProxyErrors, premium_user
+
+ if premium_user is not True:
+ raise ValueError(
+ f"Tag budgets are an Enterprise only feature, {CommonProxyErrors.not_premium_user}"
+ )
if self.tag_budget_config is None:
self.tag_budget_config = {}