mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
Merge pull request #9135 from you-n-g/add_mi_cred_pr
feature: Handle ManagedIdentityCredential in Azure AD token provider
This commit is contained in:
commit
64bbc8508f
1 changed files with 2 additions and 0 deletions
|
|
@ -30,6 +30,8 @@ def get_azure_ad_token_provider() -> Callable[[], str]:
|
|||
client_secret=os.environ["AZURE_CLIENT_SECRET"],
|
||||
tenant_id=os.environ["AZURE_TENANT_ID"],
|
||||
)
|
||||
elif cred == "ManagedIdentityCredential":
|
||||
credential = cred_cls(client_id=os.environ["AZURE_CLIENT_ID"])
|
||||
else:
|
||||
credential = cred_cls()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue