litellm/tests/test_litellm/llms/azure
yucheng a57483d1c8 fix(cost): price Azure PTU spillover requests at standard token rates
Azure PTU deployments carry zeroed per-token pricing because the reservation
is billed flat by the hour. When Azure spills a request onto pay-as-you-go
capacity it returns x-ms-is-spilled-over: true, and that traffic was still
priced at zero. The response cost calculator now detects the spillover header
on the result's hidden params or the logged provider response headers and
skips the zeroed custom pricing only for genuine PTU deployments while the
feature flag is on. Azure sync streaming now also records response headers on
the logging object, matching the async paths.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-09-17 05:24:05 +00:00
..
batches test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
chat feat(openai): add openai_system_messages_first to put system messages first for prompt caching 2026-09-15 21:53:29 +00:00
image_edit fix(azure): honor base_url client param and drop stale api-version on v1 image routes 2026-08-26 01:49:48 +00:00
image_generation fix(azure): send the deployment name as the body model on v1 image routes 2026-08-29 11:41:58 -07:00
passthrough fix(azure): keep the model group segment exact and casefold only deployment names in the relay guard 2026-09-08 17:19:23 -07:00
realtime refactor(azure/realtime): keep auth header build within lint budgets after merge 2026-08-25 17:32:21 +00:00
response fix(azure_ai): strip the azure_ai/ prefix when a Responses call is remapped to azure 2026-09-16 16:49:29 -07:00
search fix(azure/search): reject bool and non-positive max_results for bing_grounding count 2026-08-24 12:53:44 -07:00
text_to_speech style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
videos test(lint): ban blind pytest.raises(Exception) with ruff B017 (#37731) 2026-08-20 18:09:42 -07:00
test_audio_transcriptions.py fix(azure): price azure_ai transcriptions at the azure_ai cost-map entry 2026-09-08 17:12:18 -07:00
test_azure.py fix(cost): price Azure PTU spillover requests at standard token rates 2026-09-17 05:24:05 +00:00
test_azure_common_utils.py fix(azure): default max_retries to DEFAULT_MAX_RETRIES with regression tests 2026-09-09 14:29:06 -07:00
test_azure_cost_calculation.py fix(cost): pass service_tier through azure and azure_ai cost calculation (#24926) 2026-05-01 17:26:45 +05:30
test_azure_embedding.py test: run the 30 test files stranded in the second mirror (#37595) 2026-08-20 10:59:43 -07:00
test_azure_exception_mapping.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_azure_fine_tuning_api.py refactor: refactor testing 2026-03-28 18:39:32 -07:00
test_azure_speech_audio_transcription.py feat(azure): add speech transcription config support (#27482) 2026-05-23 12:16:01 -07:00