Active Directory Authentication Issue with OpenAIModel in Arize
Hi Arize AX Support I have to use active directory authentication instead of the OpenAI API key in order to use the OpenAIModel, however it seems like it's necessary to provide to the OpenAIModel class (written in the Arize library). I provided it with the azure_ad_token and azure_ad_token_provider like written below but I get the error. Can someone help me out with that? Thank you in advance! OpenAI's API key not provided. Pass it as an argument to 'api_key' or set it in your environment: 'export OPENAI_API_KEY=sk-****
model = OpenAIModel(
api_version=config["llm"]["api_version"],
azure_endpoint=config["llm"]["api_base"],
model=config["openai_engine"],
temperature=0.0,
azure_ad_token=somecode,
azure_ad_token_provider= somecode
)