mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
(feat) pass azure_ad_token to completion
This commit is contained in:
parent
7ef8611952
commit
78f42921b9
1 changed files with 2 additions and 0 deletions
|
@ -457,6 +457,7 @@ def completion(
|
|||
)
|
||||
|
||||
azure_ad_token = (
|
||||
optional_params.pop("azure_ad_token", None) or
|
||||
get_secret("AZURE_AD_TOKEN")
|
||||
)
|
||||
|
||||
|
@ -1740,6 +1741,7 @@ def embedding(
|
|||
api_base=api_base,
|
||||
api_key=api_key,
|
||||
api_version=api_version,
|
||||
azure_ad_token=None,
|
||||
logging_obj=logging,
|
||||
model_response=EmbeddingResponse(),
|
||||
optional_params=kwargs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue