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

[Bug]: Azure ad token provider does not work #6790

Open
bahtman opened this issue Nov 18, 2024 · 0 comments · May be fixed by #6917
Open

[Bug]: Azure ad token provider does not work #6790

bahtman opened this issue Nov 18, 2024 · 0 comments · May be fixed by #6917
Labels
bug Something isn't working

Comments

@bahtman
Copy link

bahtman commented Nov 18, 2024

What happened?

Using the Python SDK following the example of:
https://docs.litellm.ai/docs/providers/azure#azure-ad-token-refresh---defaultazurecredential

Using this code:

from litellm import completion as Comp
Comp(model="azure/gpt4o-mini-rag",
        api_base=api_base,
        api_version=api_version,
        azure_ad_token_provider=ad_token_provider,
        input="Hey")

Returns the following error:

APIError: litellm.APIError: AzureException APIError - Missing credentials. Please pass one of `api_key`, `azure_ad_token`, `azure_ad_token_provider`, or the `AZURE_OPENAI_API_KEY` or `AZURE_OPENAI_AD_TOKEN` environment variables.

Relevant log output

No response

Twitter / LinkedIn details

No response

@bahtman bahtman added the bug Something isn't working label Nov 18, 2024
@bahtman bahtman linked a pull request Nov 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant