fix azure.py health check

This commit is contained in:
Ishaan Jaff 2024-11-22 17:33:39 -08:00
parent 49464df216
commit 04dec96f79

View file

@ -1528,7 +1528,8 @@ class AzureChatCompletion(BaseLLM):
prompt: Optional[str] = None,
) -> dict:
client_session = (
litellm.aclient_session or httpx.AsyncClient()
litellm.aclient_session
or get_async_httpx_client(llm_provider=litellm.LlmProviders.AZURE).client
) # handle dall-e-2 calls
if "gateway.ai.cloudflare.com" in api_base: