mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* feat(budgets): support custom additional spend windows * fix(budgets): preserve window identity with shared reset helpers * fix(budgets): normalize request timestamps before window accounting * fix(budgets): preserve preset periods and daily reset boundaries * fix(budgets): compare reset boundaries as UTC instants * refactor(budgets): reuse shared duration validation, reset carry and the reset job for customer windows Customer budget_limits now keep the submitted duration and validate through budget_duration_error like user windows. Reset carry on edits goes through one carry_budget_limit_resets helper shared with group_budget_patch. Customer budget rows join the reset job's window sources, which only advance reset_at because their counters are keyed by window start, so the anchor arithmetic in get_next_standardized_reset_time is removed. budget_duration_error now also rejects durations whose window start overflows. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(budgets): type the window reset check and drop the unused overflow expression Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(budgets): preserve concurrent edits during window resets * Revert "fix(budgets): preserve concurrent edits during window resets" This reverts commit |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| access_group.py | ||
| alert.py | ||
| autorouter_session.py | ||
| base.py | ||
| budget.py | ||
| config.py | ||
| credentials.py | ||
| deployment_warning.py | ||
| end_user.py | ||
| fallback.py | ||
| gateway_activity.py | ||
| managed_files.py | ||
| mcp_server.py | ||
| model.py | ||
| object_permission.py | ||
| organization.py | ||
| organization_membership.py | ||
| performance_alert.py | ||
| plugin_upload.py | ||
| project.py | ||
| skill_submission.py | ||
| skills.py | ||
| spend_logs.py | ||
| subscription_account.py | ||
| tag.py | ||
| team.py | ||
| team_membership.py | ||
| user.py | ||
| user_banner.py | ||
| verification_token.py | ||