-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
- Package Name:
- azure-ai-evaluation
- Package Version:
- 1.5.0
- Operating System:
- Linux
- Python Version:
3.13.3
Describe the bug
After we upgraded our evaluation code from 1.3.0 to 1.5.0, we started to see this error below when using some of the ai quality metrics e.g. relevancy evaluator. This error only started to occur since the new version in 1.5.0 (could be in 1.4.0 too, but we have not tested), the same code works when azure-ai-evaluation 1.3.0 is installed.
Error example:
"
ERROR 1/1 flow run failed, indexes: [0], exception of index 0: (UserError) The following required fields are missing for connection azure_openai: api_key
"
Our model config:
model_config = { "azure_endpoint": os.getenv("AZURE_OPENAI_ENDPOINT"), "azure_deployment": os.getenv("AZURE_OPENAI_EVALUATION_DEPLOYMENT"), "api_version": os.getenv("AZURE_OPENAI_API_VERSION"), }
We have credfree requirement where we are not allowed to use API key-based connections, and our models authentication is based on entraID.
To Reproduce
Steps to reproduce the behavior:
- Configure the authentication of the model to be based on entraID based instead of API key/access key based.
- Install azure-ai-evaluation 1.5.0, use any of the out of box ai quality evaluator from the SDK, for example relevance evaluator.
- Run evaluation
- The error in description would occur
Expected behavior
EntraID based connection should be supported, and api_key would not be required when configuring a model.
Additional context
Add any other context about the problem here.