Skip to content

Conversation

shyamnamboodiripad
Copy link
Contributor

@shyamnamboodiripad shyamnamboodiripad commented Jul 16, 2025

Fixes #6592

Microsoft Reviewers: Open in CodeFlow

@Copilot Copilot AI review requested due to automatic review settings July 16, 2025 20:28
@shyamnamboodiripad shyamnamboodiripad requested a review from a team as a code owner July 16, 2025 20:28
@github-actions github-actions bot added the area-ai-eval Microsoft.Extensions.AI.Evaluation and related label Jul 16, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for Azure AI Foundry's new non-Hub-based project type for Safety evaluations. Azure AI Foundry now supports two project types: Hub-based projects (configured with subscription ID, resource group, and project name) and non-Hub-based projects (configured with an endpoint URL).

  • Extends ContentSafetyServiceConfiguration with constructor overloads to support both Hub-based and non-Hub-based projects
  • Updates service communication logic to handle different API versions and authentication scopes for each project type
  • Adds integration tests to verify both project types work correctly

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
ContentSafetyServiceConfiguration.cs Added constructor overloads and properties to support endpoint-based project configuration
ContentSafetyService.cs Updated service URL resolution and authentication to handle both project types
ContentSafetyChatClient.cs Modified provider name generation to display appropriate project information
SafetyEvaluatorTests.cs Added test scenarios for both Hub-based and non-Hub-based projects
Settings.cs Added configuration property for Azure AI project endpoint
ContentSafetyService.UrlCacheKey.cs Updated cache key to include endpoint in equality comparison

@shyamnamboodiripad shyamnamboodiripad changed the title Ad support for new Azure AI Foundry project type for Safety evals Add support for new Azure AI Foundry project type for Safety evals Jul 16, 2025
@shyamnamboodiripad shyamnamboodiripad force-pushed the safety branch 2 times, most recently from 56fee89 to 408fe32 Compare July 16, 2025 22:59
@shyamnamboodiripad shyamnamboodiripad enabled auto-merge (squash) July 16, 2025 23:41
@shyamnamboodiripad shyamnamboodiripad merged commit 73b4861 into dotnet:main Jul 17, 2025
6 checks passed
@shyamnamboodiripad shyamnamboodiripad deleted the safety branch July 17, 2025 00:24
This was referenced Aug 15, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Aug 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-ai-eval Microsoft.Extensions.AI.Evaluation and related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AI Evaluation] Support the new Azure AI Foundry project type for Safety evals
2 participants