The community member is encountering a validation error when using the llama-index-embeddings-azure-openai version 0.2.2. The error message indicates that the azure_ad_token_provider field in the AzureOpenAIEmbedding class expects a callable (a function), but it's receiving None instead. The community member is passing in an api_key as they always did, and they're wondering what's wrong and why the validation is failing.
In the comments, other community members suggest updating the llama-index-embeddings-azure-openai package by running pip install -U llama-index-embeddings-azure-openai. However, there is no explicitly marked answer to the original issue.
Seeing above error message when using llama-index-embeddings-azure-openai version 0.2.2
The error message I'm encountering indicates that the azure_ad_token_provider field in the AzureOpenAIEmbedding class expects a callable (i.e., a function), but it's receiving None instead. This is causing the validation to fail. I'm passing in an api_key as I always did, wonder what's wrong here and why it's throwing a vliadation error?