litellm/tests/test_litellm/proxy/spend_tracking
Cursor Agent 63579f1e35
fix(spend-tracking): keep batch spend keys joinable after v1.99 provenance gate
Batch cost attribution and the legacy queue endpoint already store the
VerificationToken hash in user_api_key, but omitted user_api_key_hash.
Since v1.99 the spend-log writer re-hashes any key without that provenance
flag, so DailyUserSpend.api_key no longer joins VerificationToken and Usage
shows key-hash-... rows with null api_key_alias / user_email.

Co-authored-by: Mateo Wang <mateo-berri@users.noreply.github.com>
2026-09-03 14:12:57 +00:00
..
test_budget_reservation.py fix(proxy): match OpenAI on empty input and skip budget reservation for token counting 2026-08-31 12:25:45 -07:00
test_budget_reservation_redis_failure.py fix(register_model): preserve built-in cache pricing when registering custom overrides under unmapped keys (#30044) 2026-06-10 12:11:03 -07:00
test_cloudzero_endpoints.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_compression_savings.py feat(spend): track prompt compression saved tokens in daily spend aggregates (#33810) 2026-07-18 17:47:54 -07:00
test_ptu_feature_flag.py feat(ptu): gate PTU flat-cost attribution behind an opt-in env var (#36138) 2026-08-10 12:23:20 -07:00
test_ptu_flat_cost_rollup.py test(ptu): drop the assertion on the flag removed upstream 2026-08-23 10:02:41 +00:00
test_savings.py test: isolate global MCP registry and pin savings tests to bundled cost map 2026-08-30 10:18:15 +00:00
test_spend_log_error_logger.py feat(spend-logs): opt-in suppression of stack traces in spend-tracking error logs 2026-05-02 00:44:34 +00:00
test_spend_management_endpoints.py fix(ui): paginate request logs by session groups server-side (#39257) 2026-09-02 17:54:17 -07:00
test_spend_query_optimization.py fix(ui): paginate request logs by session groups server-side (#39257) 2026-09-02 17:54:17 -07:00
test_spend_tracking_utils.py fix(spend-tracking): keep batch spend keys joinable after v1.99 provenance gate 2026-09-03 14:12:57 +00:00