litellm/tests/unit/llms/azure_ai
Claude ea415c60a6
feat(cost): price every token call, session and Model Router fee from one Rust receipt
completion_cost now takes the whole token result from a Rust receipt for every
provider, not only the four /v1/messages providers: the prompt and completion
sides, the stored token-type breakdown and billed rates, the built-in tool fees
Python still prices, the Azure AI Model Router fee, discount and margin. Each
provider branch looks its row up as main did and the candidate loop passes the
row main's breakdown read beside it, so the stored breakdown matches main even
where the two rows differ.

The core gains BreakdownRow, tool_fees, RouterFee (on the prompt, or as the
"Azure Model Router Flat Cost" part) and TokenRules::GenericTier, quotes the
breakdown and savings at the call's tier and endpoint, and folds xAI reasoning
into the completion itself, so the Python xAI fold, the Azure AI fee math,
_get_additional_costs and the calculate_additional_costs hooks are deleted.
Replicate's per-second fallback prices through the bridge.

A realtime or Live session's tokens and its response.done turns now price in
the same Rust call as its other parts, and the Python candidate order and
summing for them is deleted.

tokens_parity.json gains the raw prompt and total token counts the adapter now
sends, so the xAI case that needed the Python fold runs in Rust. Main's
expected outputs are unchanged.
2026-11-19 20:16:21 +00:00
..
agents refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
anthropic feat(messages): serve azure ai foundry messages on rust only (#51721) 2026-11-14 13:40:38 -08:00
chat fix(azure-ai): send max_completion_tokens for GPT-5 Chat on Foundry (#52680) 2026-11-19 08:26:29 +08:00
claude fix(vertex_ai,azure_ai)!: auto-add the compaction, thinking display, and tool change betas on Claude routes (#44747) 2026-10-30 09:28:19 -07:00
embed test: migrate local_testing SDK and provider tests out of build_and_test (#45760) 2026-10-10 23:14:25 +00:00
image_edit feat(azure_ai): support gpt-image edits on Azure AI Foundry (#49650) 2026-11-12 00:52:55 +00:00
image_generation refactor(rust_bridge): route every Rust-to-Python call through host modules (#50822) 2026-11-11 01:57:54 +00:00
passthrough fix(cohere): price native Cohere embed calls on Foundry relays and the Cohere passthrough (#48978) 2026-10-29 05:17:11 -07:00
rerank chore(cost-map): remove the 52 rows whose provider retired them before 2026 (#49974) 2026-11-03 16:23:06 -08:00
responses fix(responses): scope cacheable system input to stateless requests (#52694) 2026-11-18 17:24:52 -08:00
vector_stores refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
__init__.py test(unit): add package markers to migrated unit test directories 2026-09-20 11:53:14 +00:00
test_azure_ai_agents_handler.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
test_azure_ai_cost_calculator.py feat(cost): price every token call, session and Model Router fee from one Rust receipt 2026-11-19 20:16:21 +00:00
test_azure_ai_entra_auth.py fix(azure)!: answer 401 when Entra rejects the deployment's credential (#49863) 2026-11-04 20:44:55 +00:00
test_azure_ai_foundry_catalog_model_metadata.py feat(cost-map): rolling registry update (claude-mythos-5-2, Azure Mythos 5.2, Friendli GLM-5.1 date, GovCloud Fable 5.2 token counting) (#50777) 2026-11-10 13:31:56 +00:00
test_azure_ai_fw_models_metadata.py refactor(rust_bridge): route every Rust-to-Python call through host modules (#50822) 2026-11-11 01:57:54 +00:00
test_azure_ai_kimi_k26_metadata.py refactor(rust_bridge): route every Rust-to-Python call through host modules (#50822) 2026-11-11 01:57:54 +00:00