litellm/tests/unit/proxy/auth
devin-ai-integration[bot] 2d034bb35b
perf(proxy): hold one spend counter batch across admission and across post-call accounting (#43369)
Auth's spend counter MGET scope spans common checks, model budget check and reservation;
reservation increments go out as one pipeline; post-call reconcile adjustments ride the ordinary
increment pipeline and update_cache uses one batched read. Over-budget reservation counters are
charged one at a time so a rejection never touches the counters after it; post-call counter keys are
derived from ids without validating a UserAPIKeyAuth.

Resolves LIT-8881

Co-authored-by: yassin <yassin@berri.ai>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-09-29 15:05:33 -07:00
..
__init__.py
test_auth_checks.py
test_default_end_user_budget_simple.py
test_jwt.py
test_models_fallback_endpoint.py
test_multipart_bypass_repro.py
test_proxy_routes.py
test_user_api_key_auth.py