litellm/tests/unit/llms/azure
owen-hj 43bde63432
fix(bedrock): send pass-through calls the model id chat completions sends (#53836)
* fix(router): strip the Bedrock route marker from the model in pass-through paths

A router model on a bedrock/invoke/ or bedrock/converse/ deployment sent
/model/invoke/<model id>/<action> upstream on /bedrock/model/<group>/...,
which Bedrock answers with UnknownOperationException. The rewrite now drops
the same routing prefixes the chat invoke path drops.

* fix(router): strip the Bedrock route marker from the model in pass-through paths

* test(router): pin the pass-through model path at the router core for Bedrock route markers and other providers

Bedrock invoke and converse deployments must send the bare model id, a hosted_vllm deployment keeps its full provider model, and a model no provider resolves is sent as written

* fix(bedrock): send chat's model id on pass-through and log spend for route-pinned models

Pass-through paths for Bedrock deployments now drop a region path and resolve
latest aliases like chat does, every Bedrock ARN gets its resource slash
encoded, and a converse reply on an invoke-pinned deployment is logged with the
converse parser so its spend row is written

* fix(bedrock): build the pass-through model id with chat's builder and encode custom model ARNs

* fix(bedrock): price invoke replies on application profile ARNs by their base model

* fix(passthrough): keep the pass-through ARN form and price streamed invoke replies on app profile ARNs by base_model

* test(bedrock): cover custom model ARN encoding on the bedrock/openai chat route

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-11-25 18:42:28 -08:00
..
batches fix(router,files,batches)!: never resend a file or batch create the provider may already have (#51315) 2026-11-25 07:20:51 +00:00
chat fix(llms): treat chat-latest and gpt-chat-latest as gpt-5 family models (#51151) 2026-11-24 04:02:51 -08:00
completion test: migrate tests/llm_translation into unit, integration and e2e tiers (#45759) 2026-10-11 07:58:53 +00:00
decisions fix(decisions): accept OpenAI input_json content parts on /v1/decisions (#52805) 2026-11-20 13:33:36 -08:00
image_edit fix(images): send image_edit markup as a multipart file part (#53815) 2026-11-25 04:14:57 +00:00
image_generation refactor(images): remove dall-e-2 and dall-e-3 code paths (#48703) 2026-10-28 17:48:09 -07:00
live feat(realtime): serve Azure GPT-Live sessions on /v1/live/sessions (#53238) 2026-11-20 17:46:05 -08:00
passthrough fix(bedrock): send pass-through calls the model id chat completions sends (#53836) 2026-11-25 18:42:28 -08:00
realtime feat(realtime): bill translation WebRTC calls by the time the call ran (#53548) 2026-11-22 00:25:53 -08:00
response fix(azure): send no api-version on Foundry project /openai/v1 Responses bases (#51767) 2026-11-14 05:24:12 -05:00
search fix(azure)!: answer 401 when Entra rejects the deployment's credential (#49863) 2026-11-04 20:44:55 +00:00
text_to_speech
vector_stores fix(vector_stores): put azure vector store id before the api-version query on retrieve, update and delete (#48224) 2026-10-24 13:44:19 -07:00
videos
__init__.py
test_audio_transcriptions.py fix(azure): send the deployment's api_version on async audio transcriptions (#53400) 2026-11-26 01:19:16 +00:00
test_azure.py test(azure): restore client session after extra headers test (#52815) 2026-11-19 08:27:46 +00:00
test_azure_common_utils.py fix(speech)!: use the provider api key get_llm_provider resolves (#39522) 2026-11-24 23:10:44 +00:00
test_azure_cost_calculation.py
test_azure_embedding.py test: migrate tests/llm_translation into unit, integration and e2e tiers (#45759) 2026-10-11 07:58:53 +00:00
test_azure_exception_mapping.py fix(exceptions): map upstream 403 to PermissionDeniedError for OpenAI-style providers (#52179) 2026-11-17 03:14:09 +00:00
test_azure_fine_tuning_api.py
test_azure_ptu_capacity.py feat(proxy): split Azure PTU deployments across teams with per-team PTU ceilings and PTU-hour reporting (#43043) 2026-10-15 18:44:30 +00:00
test_azure_speech_audio_transcription.py