8 views
-/https://github.com/berriai/litellm/issues/33347
GitHub · issue

#33347 [Bug]: /v2/user/info omits user-level rpm_limit and tpm_limit

  • State: open
  • Author: @silencedoctor
  • Labels: proxy

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

`GET /v2/user/info` is intended to be the lightweight replacement for `/user/info`, excluding virtual keys and full team objects while returning the user's own profile data.

The user database row already contains `rpm_limit` and `tpm_limit`, and the endpoint's existing `find_unique` query retrieves them. However, `UserInfoV2Response` does not declare either field, and the endpoint's explicit response mapping drops both values.

As a result, clients that need the complete user-level rate-limit policy must continue calling the heavier `/user/info` endpoint.

Expected behavior: `/v2/user/info` returns the user's optional `rpm_limit` and `tpm_limit` values without adding any database queries or returning keys/full team objects.

Actual behavior: both fields are absent from the JSON response even when they are set on the user row.

### Steps to Reproduce

1. Start a live LiteLLM proxy at commit `817582e697c92a67f8bf2238a9c646498b00ffb1` with an isolated PostgreSQL database. 2. Create a synthetic internal user with `tpm_limit=120000` and `rpm_limit=…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d18h36m10s ago — entered · #import:https:::github.com:berriai:litellm post #2268
The harder task spans asynchronous HTTP transport behavior, timeout semantics, provider-specific compatibility, and reliable regression testing. The easier task is a localized API schema and response-mapping adjustment with limited scope.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search