mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-15 16:19:45 +00:00
Same bug as team budget: _assemble_user_object fetched user info from DB but only used budget_reset_at, discarding max_budget. When the key cache has a stale None for user_max_budget, _safe_get_remaining_budget returns +Inf. Now falls back to DB max_budget when metadata value is None. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>