litellm/tests/integration/cost_calculation/cases
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
..
__init__.py test(integration): move the openai cost tracking cases from cost_tracking_cases.json to CostTrackingTestCase literals (#45879) 2026-10-10 23:29:23 +00:00
anthropic.py test(integration): cover claude-fable-5-2 capability flags and prompt-cache pricing on the scripted Anthropic upstream (#50722) 2026-11-09 13:24:37 -08:00
azure.py test(integration): repair stale contract fixtures (#49700) 2026-11-02 11:23:11 -08:00
batch_realtime.py test(integration): repair tests that merged changes left stale (#50782) 2026-11-10 01:08:35 +00:00
bedrock_chat_completions.py test(cost): add xai grok-4.7, Bedrock runtime chat completions and Bedrock Mantle cost cases (#46154) 2026-10-13 09:06:19 -07:00
bedrock_converse.py test(cost): recapture Bedrock Converse and Vertex Claude 5.5 usage shapes 2026-11-11 17:12:17 +00:00
bedrock_mantle.py test(cost): add tier 1 cost tracking cells and sync usage shapes for 2026-10-17 (#47141) 2026-10-17 11:11:46 -07:00
decisions.py test(decisions): audit #47508 (#48777) 2026-10-28 04:38:21 -07:00
fireworks_ai.py test(cost): pin litellm's own prompt count over a tool-call history when the stream carries no usage (#46710) 2026-10-15 17:47:43 +00:00
gemini.py fix(vertex_ai): build the cachedContents collection URL under a custom api_base (#44783) 2026-10-29 03:46:35 -07:00
misc.py test(cost): expect cohere rerank-v4 prompt_tokens from billed_units.total_tokens (#49455) 2026-10-31 11:03:10 -07:00
openai.py fix(transcription): stop billing a FLAC with no sample count as 576 trillion seconds (#50842) 2026-11-10 06:19:33 +00:00
together_ai.py test(integration): move the openai cost tracking cases from cost_tracking_cases.json to CostTrackingTestCase literals (#45879) 2026-10-10 23:29:23 +00:00
vertex_ai.py test(cost): recapture Bedrock Converse and Vertex Claude 5.5 usage shapes 2026-11-11 17:12:17 +00:00
xai.py fix(cost): split xai spend rows across input and output instead of booking the total as output (#46320) 2026-10-14 17:02:00 -07:00