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]

Add deprecation notice to /spend/logs endpoint

AlexsanderHamirdf190d25b87c
diff --git a/litellm/proxy/spend_tracking/spend_management_endpoints.py b/litellm/proxy/spend_tracking/spend_management_endpoints.py
index 608db6af9a6..2d3fc023a39 100644
--- a/litellm/proxy/spend_tracking/spend_management_endpoints.py
+++ b/litellm/proxy/spend_tracking/spend_management_endpoints.py
@@ -1917,6 +1917,9 @@ async def view_spend_logs( # noqa: PLR0915
user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
):
"""
+ [DEPRECATED] This endpoint is not paginated and can cause performance issues.
+ Please use `/spend/logs/v2` instead for paginated access to spend logs.
+
View all spend logs, if request_id is provided, only logs for that request_id will be returned
When start_date and end_date are provided: