_base_validate_azure_environment

This commit is contained in:
Ishaan Jaffer 2025-10-11 08:59:19 -07:00
parent a163bf9f51
commit 8dc5960332

View file

@ -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