mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
(feat) completion:azure - add azure_ad_token
This commit is contained in:
parent
7a6586fa75
commit
ceaf944cd4
1 changed files with 5 additions and 0 deletions
|
@ -456,6 +456,10 @@ def completion(
|
|||
get_secret("AZURE_API_KEY")
|
||||
)
|
||||
|
||||
azure_ad_token = (
|
||||
get_secret("AZURE_AD_TOKEN")
|
||||
)
|
||||
|
||||
headers = (
|
||||
headers or
|
||||
litellm.headers
|
||||
|
@ -476,6 +480,7 @@ def completion(
|
|||
api_base=api_base,
|
||||
api_version=api_version,
|
||||
api_type=api_type,
|
||||
azure_ad_token=azure_ad_token,
|
||||
model_response=model_response,
|
||||
print_verbose=print_verbose,
|
||||
optional_params=optional_params,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue