mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
_base_validate_azure_environment
This commit is contained in:
parent
a163bf9f51
commit
8dc5960332
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue