diff --git a/litellm/proxy/management_endpoints/tag_management_endpoints.py b/litellm/proxy/management_endpoints/tag_management_endpoints.py index 1acf5aa1605..8b0d1b5101d 100644 --- a/litellm/proxy/management_endpoints/tag_management_endpoints.py +++ b/litellm/proxy/management_endpoints/tag_management_endpoints.py @@ -494,7 +494,7 @@ async def update_tag( if spend_counter_cache.redis_cache is not None: try: await spend_counter_cache.redis_cache.async_set_cache(key=counter_key, value=tag.spend, ttl=60) - except Exception as redis_err: + except Exception as redis_err: # noqa: BLE001 # best-effort refresh: a Redis failure must not fail the request verbose_proxy_logger.warning( "Failed to update spend counter %s in Redis after tag spend update: %s. " "Budget checks may use stale value until counter expires.", diff --git a/ui/litellm-dashboard/src/lib/http/schema.d.ts b/ui/litellm-dashboard/src/lib/http/schema.d.ts index 2272b4bea43..245c0f20b03 100644 --- a/ui/litellm-dashboard/src/lib/http/schema.d.ts +++ b/ui/litellm-dashboard/src/lib/http/schema.d.ts @@ -17162,6 +17162,7 @@ export interface paths { * - description: Optional[str] - Updated description * - models: List[str] - Updated list of allowed LLM models * - budget_id: Optional[str] - The id for a budget to associate with the tag + * - spend: Optional[float] - Set the tag's accumulated spend (e.g. 0 to reset it). Omit to leave unchanged. Does not change budget_reset_at; the current budget window is left as-is * * ### BUDGET UPDATE PARAMS ### * - max_budget: Optional[float] - Max budget for tag @@ -47982,6 +47983,8 @@ export interface components { rpm_limit?: number | null; /** Soft Budget */ soft_budget?: number | null; + /** Spend */ + spend?: number | null; /** Tpm Limit */ tpm_limit?: number | null; };