litellm/tests/unit/llms/azure
Mateo Wang c0d88b46c9
fix(azure): cache the remaining per-request Entra credentials and keep token refresh off the event loop (#47348)
* fix(azure): cache the remaining per-request Entra credentials and keep token refresh off the event loop

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(realtime): await the now async azure health-check auth header helper

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(azure): await async azure_ad_token_provider results in the threaded wrapper

* fix(azure): keep transport params when validating async Azure client params on pydantic 2.11

* test(azure): assert the token and validation thread hops by thread identity instead of sleeps

* fix(azure): give the OIDC token exchange its own short-lived HTTP client

The exchange now runs from worker threads, so it no longer shares litellm.module_level_client's connection pool with other threads

* test(azure): check the OIDC exchange closes its client through an in-process transport

* refactor(responses): merge caller extra_headers into a new dict instead of updating validated headers in place

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-19 20:35:27 +00:00
..
batches
chat fix(openai): drop unsupported reasoning effort for gpt-6.1-sol (#43935) 2026-10-19 11:40:56 -07:00
completion
image_edit
image_generation
passthrough
realtime
response fix(openai): drop unsupported reasoning effort for gpt-6.1-sol (#43935) 2026-10-19 11:40:56 -07:00
search fix(azure): cache the remaining per-request Entra credentials and keep token refresh off the event loop (#47348) 2026-10-19 20:35:27 +00:00
text_to_speech
vector_stores
videos
__init__.py
test_audio_transcriptions.py
test_azure.py
test_azure_common_utils.py fix(azure): cache the remaining per-request Entra credentials and keep token refresh off the event loop (#47348) 2026-10-19 20:35:27 +00:00
test_azure_cost_calculation.py
test_azure_embedding.py
test_azure_exception_mapping.py
test_azure_fine_tuning_api.py
test_azure_ptu_capacity.py
test_azure_speech_audio_transcription.py