litellm/tests/integration/cost_calculation
kerry 397cc150df test(cost): recapture Bedrock Converse and Vertex Claude 5.5 usage shapes
Audit 4 of the cost tracking sync replayed the stored tier 1 requests against the live providers. Bedrock Converse replies for claude-sonnet-5-5, claude-opus-5-5 and claude-haiku-5-5 now carry cacheReadInputTokenCount, cacheWriteInputTokenCount and serverToolUsage, and Vertex Claude replies for the same three models carry speed. The stored usage blocks and streamed final usage frames take the captured shapes, token numbers and every ExactExpected stay unchanged

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-11 17:12:17 +00:00
..
bridge_cost_parity test(cost): cover custom deployment aliases, off-peak pricing, bridge usage shapes and duplicate spend rows (#46708) 2026-10-15 10:44:51 -07:00
cases test(cost): recapture Bedrock Converse and Vertex Claude 5.5 usage shapes 2026-11-11 17:12:17 +00:00
stream_parity test(cost): add BridgeCostParityTestCase with a gpt-6-sol /v1/messages to Responses pair (#46130) 2026-10-13 02:51:55 +00:00
assertions.py test(integration): assert the streamed usage.cost matches the spend row on every cost case (#46762) 2026-10-15 22:34:42 +00:00
catalog.py test(cost): run azure_ai claude bridge pairs, add anthropic usage speed and vertex gemini audio priority price (#47582) 2026-10-20 17:10:16 +00:00
conftest.py test(cost): cover custom deployment aliases, off-peak pricing, bridge usage shapes and duplicate spend rows (#46708) 2026-10-15 10:44:51 -07:00
cost_map.py test(cost): sync vertex 3.1 pro price fields and bedrock converse usage shapes (#50956) 2026-11-10 09:24:50 -08:00
cost_tracking_case.py fix(transcription): stop billing a FLAC with no sample count as 576 trillion seconds (#50842) 2026-11-10 06:19:33 +00:00
test_base_model_cross_provider_spend.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_batch_realtime_cost.py test: update the spend tests that still expected the pre-ledger accounting queues (#50814) 2026-11-09 22:07:42 -08:00
test_bridged_previous_response_id_spend.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00
test_cost_tracking.py fix(transcription): stop billing a FLAC with no sample count as 576 trillion seconds (#50842) 2026-11-10 06:19:33 +00:00
test_messages_bridged_stream_margin_discount.py fix(cost): keep upstream_usage_cost on the Responses stream logging copy so bridged /v1/messages rows price their tokens (#49365) 2026-10-31 09:52:22 -07:00
test_responses_websocket_guardrail_spend.py test(integration): give each owned proxy a private database and Redis by default (#47213) 2026-10-18 03:37:41 +00:00