mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
(feat) pass azure_ad_token to embedding
This commit is contained in:
parent
c903fcc6f3
commit
7a3fa18a64
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