Skip to content

Commit df190d2

Browse files
Add deprecation notice to /spend/logs endpoint
- Mark /spend/logs as deprecated in docstring - Direct users to use /spend/logs/v2 for paginated access - Warns about performance issues with non-paginated endpoint
1 parent 1ad9e01 commit df190d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

litellm/proxy/spend_tracking/spend_management_endpoints.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,6 +1917,9 @@ async def view_spend_logs( # noqa: PLR0915
19171917
user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
19181918
):
19191919
"""
1920+
[DEPRECATED] This endpoint is not paginated and can cause performance issues.
1921+
Please use `/spend/logs/v2` instead for paginated access to spend logs.
1922+
19201923
View all spend logs, if request_id is provided, only logs for that request_id will be returned
19211924
19221925
When start_date and end_date are provided:

0 commit comments

Comments
 (0)