Replies: 1 comment
-
I see the problem ..The DefaultAzureConfig is hardcoded to apitype "APITypeAzure" ......there is no allowance for apitype "APITypeAzureAD". Why ? P.S. I am new to Go and may not understand the library well enough. Thanks for reviewing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the equivalent code/config for the following ? I am asking because the README example does not allow for using token providers.
`from azure.identity import DefaultAzureCredential, get_bearer_token_provider
from openai import AzureOpenAI
token_provider = get_bearer_token_provider(
DefaultAzureCredential(), "https://cognitiveservices.azure.com/.default"
)
client = AzureOpenAI(
api_version="2024-02-15-preview",
azure_endpoint="https://{your-custom-endpoint}.openai.azure.com/",
azure_ad_token_provider=token_provider
)`
Beta Was this translation helpful? Give feedback.
All reactions