-
Notifications
You must be signed in to change notification settings - Fork 167
Remove Azure.AI.OpenAI dependency and update packages in Microsoft Extensions AI Evaluation samples #139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
shyamnamboodiripad
merged 15 commits into
main
from
copilot/remove-azure-ai-openai-dependency
Oct 23, 2025
Merged
Remove Azure.AI.OpenAI dependency and update packages in Microsoft Extensions AI Evaluation samples #139
shyamnamboodiripad
merged 15 commits into
main
from
copilot/remove-azure-ai-openai-dependency
Oct 23, 2025
+50
−32
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…h Azure endpoints Co-authored-by: shyamnamboodiripad <[email protected]>
Copilot
AI
changed the title
[WIP] Remove dependency on Azure.AI.OpenAI package in samples
Remove Azure.AI.OpenAI dependency from Microsoft Extensions AI Evaluation samples
Oct 23, 2025
Copilot finished work on behalf of
shyamnamboodiripad
October 23, 2025 00:30
src/microsoft-extensions-ai-evaluation/api/evaluation/Setup/TestSetup.cs
Outdated
Show resolved
Hide resolved
src/microsoft-extensions-ai-evaluation/api/evaluation/Setup/TestSetup.cs
Outdated
Show resolved
Hide resolved
…ariable Co-authored-by: shyamnamboodiripad <[email protected]>
Copilot finished work on behalf of
shyamnamboodiripad
October 23, 2025 00:41
src/microsoft-extensions-ai-evaluation/api/evaluation/Setup/TestSetup.cs
Outdated
Show resolved
Hide resolved
src/microsoft-extensions-ai-evaluation/api/evaluation/Setup/TestSetup.cs
Outdated
Show resolved
Hide resolved
src/microsoft-extensions-ai-evaluation/api/evaluation/Evaluation.csproj
Outdated
Show resolved
Hide resolved
src/microsoft-extensions-ai-evaluation/api/reporting/Reporting.csproj
Outdated
Show resolved
Hide resolved
src/microsoft-extensions-ai-evaluation/api/evaluation/Setup/TestSetup.cs
Show resolved
Hide resolved
Co-authored-by: shyamnamboodiripad <[email protected]>
…Warn from csproj files Co-authored-by: shyamnamboodiripad <[email protected]>
Copilot finished work on behalf of
shyamnamboodiripad
October 23, 2025 00:53
Copilot finished work on behalf of
shyamnamboodiripad
October 23, 2025 00:59
src/microsoft-extensions-ai-evaluation/api/evaluation/Setup/TestSetup.cs
Outdated
Show resolved
Hide resolved
Copilot finished work on behalf of
shyamnamboodiripad
October 23, 2025 02:00
Co-authored-by: shyamnamboodiripad <[email protected]>
Copilot finished work on behalf of
shyamnamboodiripad
October 23, 2025 02:14
Co-authored-by: shyamnamboodiripad <[email protected]>
Copilot finished work on behalf of
shyamnamboodiripad
October 23, 2025 02:21
src/microsoft-extensions-ai-evaluation/api/evaluation/Evaluation.csproj
Outdated
Show resolved
Hide resolved
Co-authored-by: shyamnamboodiripad <[email protected]>
Copilot finished work on behalf of
shyamnamboodiripad
October 23, 2025 02:30
src/microsoft-extensions-ai-evaluation/api/evaluation/Setup/TestSetup.cs
Outdated
Show resolved
Hide resolved
src/microsoft-extensions-ai-evaluation/api/evaluation/Setup/TestSetup.cs
Outdated
Show resolved
Hide resolved
src/microsoft-extensions-ai-evaluation/api/evaluation/Setup/TestSetup.cs
Outdated
Show resolved
Hide resolved
src/microsoft-extensions-ai-evaluation/api/evaluation/Setup/TestSetup.cs
Outdated
Show resolved
Hide resolved
src/microsoft-extensions-ai-evaluation/api/evaluation/Setup/TestSetup.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: shyamnamboodiripad <[email protected]>
… whitespace Co-authored-by: shyamnamboodiripad <[email protected]>
Copilot finished work on behalf of
shyamnamboodiripad
October 23, 2025 02:38
shyamnamboodiripad
approved these changes
Oct 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran all tests in the solution and confirmed that the changes work 👍🏾 ![]()
peterwald
approved these changes
Oct 23, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Remove Azure.AI.OpenAI dependency and update packages in Microsoft Extensions AI Evaluation samples
Following the pattern from dotnet/extensions PR #6873, this change removes the Azure.AI.OpenAI package dependency and uses the standard OpenAI client with Azure-compatible endpoints. Additionally, all NuGet packages have been updated to their latest stable or prerelease versions.
Completed Changes:
Key Changes:
Project Files (Evaluation.csproj & Reporting.csproj)
Azure.AI.OpenAIpackage reference (version 2.1.0)Azure.Corepackage reference (version 1.49.0)dotnet-tools.json
TestSetup.cs
System.ClientModelandSystem.ClientModel.Primitivesusing Azure.AI.OpenAIGetAzureOpenAIChatConfiguration()to:OpenAIClientinstead ofAzureOpenAIClient/openai/v1suffix to Azure OpenAI endpoints with documentation linkBearerTokenPolicywithDefaultAzureCredentialfor managed identity authenticationOpenAIClientOptionsto configure the Azure endpointGetOpenAIChatConfiguration()to useApiKeyCredentialwrapperVerification:
✅ Solution builds successfully with zero errors and zero warnings
✅ All package dependencies are correctly resolved
✅ Code review feedback addressed
✅ All packages updated to exact versions specified by maintainer
✅ Changes follow the established pattern from dotnet/extensions PR #6873
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.