From 8dc5960332c4ad11e019305a9575349abe91b5a1 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Sat, 11 Oct 2025 08:59:19 -0700 Subject: [PATCH] _base_validate_azure_environment --- litellm/llms/azure/common_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litellm/llms/azure/common_utils.py b/litellm/llms/azure/common_utils.py index 54352148c5e..dfe662cc165 100644 --- a/litellm/llms/azure/common_utils.py +++ b/litellm/llms/azure/common_utils.py @@ -672,6 +672,10 @@ class BaseAzureLLM(BaseOpenAILLM): ) -> dict: litellm_params = litellm_params or GenericLiteLLMParams() + # Check if api-key is already in headers; if so, use it + if "api-key" in headers: + return headers + api_key = ( litellm_params.api_key or litellm.api_key