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 | ||
| team_metadata_validator_impls.py | ||
| test_access_group_key_sync.py | ||
| test_access_group_model_sync.py | ||
| test_access_group_team_sync.py | ||
| test_apps.py | ||
| test_audit_log_callbacks.py | ||
| test_audit_logs_proxy.py | ||
| test_auto_router_availability.py | ||
| test_auto_router_permissions.py | ||
| test_bulk_user_creation.py | ||
| test_bulk_user_deletion.py | ||
| test_customer_budget_usage.py | ||
| test_customer_hierarchy.py | ||
| test_management_helpers_utils.py | ||
| test_object_permission_utils.py | ||
| test_resource_display_names.py | ||
| test_team_list_sorting.py | ||
| test_team_member_permission_checks.py | ||
| test_team_metadata_validation.py | ||
| test_team_roster_sync.py | ||
| test_user_list_sorting.py | ||