Cloud evaluation supports admin-connected models only when the connected deployment exposes the OpenAI Chat Completions API.
Admin-connected model support in cloud evaluation is in preview and might not be available in all regions.
Prerequisites
- A Foundry project.
- Foundry User role on the Foundry project.
- An administrator has created an Azure API Management or non-Azure AI model gateway connection on your Foundry resource and added the model on the Manage > Resource details > Admin-connected models tab. For setup instructions, see Bring your own model to Foundry Agent Service.
- The connection name and deployment name for a model that supports the OpenAI Chat Completions API.
Reference an admin-connected model
Use the following format anywhere a supported evaluation scenario accepts a model deployment:Use an admin-connected model as an evaluator judge model
Setinitialization_parameters.model when you configure an AI-assisted evaluator. This example uses the admin-connected model as the judge for the coherence evaluator:
Use an admin-connected model as a target
Settarget.model to send each evaluation input to the admin-connected model:
Use other evaluation scenarios
Other model-based scenarios in Run evaluations in the cloud by using the Microsoft Foundry SDK work similarly with admin-connected models. Wherever the scenario accepts a supported model deployment, replace the deployment name with<connection-name>/<deployment-name>. For example, conversation simulation accepts this reference in item_generation_params.model.
Keep the Foundry project endpoint unchanged, and don’t add the gateway endpoint or credentials to the evaluation request. Foundry resolves those values from the admin-connected model connection.
Admin-connected model isn’t available for synthetic data generation.