forked from phoenix/litellm-mirror
(feat) pass azure_ad_token to embedding
This commit is contained in:
parent
78f42921b9
commit
53ed8f3b7e
1 changed files with 5 additions and 0 deletions
|
@ -1728,6 +1728,11 @@ def embedding(
|
|||
get_secret("AZURE_API_VERSION")
|
||||
)
|
||||
|
||||
azure_ad_token = (
|
||||
kwargs.pop("azure_ad_token", None) or
|
||||
get_secret("AZURE_AD_TOKEN")
|
||||
)
|
||||
|
||||
api_key = (
|
||||
api_key or
|
||||
litellm.api_key or
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue