Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Litellm azure ad token common helper #5440

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

krrishdholakia
Copy link
Contributor

@krrishdholakia krrishdholakia commented Aug 30, 2024

Title

Builds on #5437
Exposes common helper to close #4417

Provides a common helper function for handling the different azure auth flows

kzych-inpost and others added 2 commits August 29, 2024 18:34
* Implement Azure Service Principal with Secret authentication workflow.

* Use `ClientSecretCredential` instead of `DefaultAzureCredential`.

* Move imports into the function.

* Add type hint for `azure_ad_token_provider`.

* Add unit test for router initialization and sample completion using Azure Service Principal with Secret authentication workflow.

* Add unit test for router initialization with neither API key nor using Azure Service Principal with Secret authentication workflow.
Copy link

vercel bot commented Aug 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 30, 2024 4:57am

@Manouchehri
Copy link
Collaborator

Any chance this fix could be merged in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Azure OpenAI attempts to reuse Azure AD token after it expires
3 participants