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 |
||
|---|---|---|
| .. | ||
| native_budgets_golden | ||
| __init__.py | ||
| native_budgets_replica.py | ||
| test_background_interaction_settlement.py | ||
| test_baseline_accounting.py | ||
| test_budget_reservation.py | ||
| test_budget_reservation_redis_failure.py | ||
| test_budget_reservation_rust.py | ||
| test_carried_budget_state.py | ||
| test_cloudzero_endpoints.py | ||
| test_committed_spend.py | ||
| test_compression_savings.py | ||
| test_cost_finalization.py | ||
| test_customer_budget_alerts.py | ||
| test_customer_cost_margin.py | ||
| test_customer_window_accounting.py | ||
| test_customer_window_accounting_rust.py | ||
| test_input_tokens.py | ||
| test_key_metadata_recovery.py | ||
| test_native_budget_checks.py | ||
| test_native_budgets.py | ||
| test_native_budgets_proxy_path.py | ||
| test_performance_alerts.py | ||
| test_ptu_feature_flag.py | ||
| test_ptu_flat_cost_rollup.py | ||
| test_savings.py | ||
| test_search_api_logging.py | ||
| test_session_page.py | ||
| test_session_spend_total.py | ||
| test_spend_capture_rate.py | ||
| test_spend_counter_batch.py | ||
| test_spend_event.py | ||
| test_spend_event_producer.py | ||
| test_spend_log_error_logger.py | ||
| test_spend_management_endpoints.py | ||
| test_spend_query_optimization.py | ||
| test_spend_tracking_utils.py | ||
| test_subscription_billing_periods.py | ||