Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Sep 26, 2025

Updates Microsoft.Extensions.AI packages to their latest versions as requested in issue #5249.

Changes

  • Microsoft.Extensions.AI: 9.9.09.9.1
  • Microsoft.Extensions.AI.OpenAI: 9.9.0-preview.1.25458.49.9.1-preview.1.25474.6
  • Microsoft.Extensions.AI.AzureAIInference: 9.9.0-preview.1.25458.49.9.1-preview.1.25474.6
  • OpenAI: 2.4.02.5.0 (required dependency update)

The OpenAI package was updated from 2.4.0 to 2.5.0 because the new Microsoft.Extensions.AI.OpenAI version requires OpenAI >= 2.5.0.

Testing

All AI-related component tests continue to pass:

  • Aspire.OpenAI.Tests: ✅ 95 passed, 6 skipped
  • Aspire.Azure.AI.Inference.Tests: ✅ 34 passed, 11 skipped
  • Aspire.Azure.AI.OpenAI.Tests: ✅ 104 passed, 6 skipped

The full solution builds successfully with the updated package versions.

Fixes #5249

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.openai.com
    • Triggering command: /home/REDACTED/work/aspire/aspire/artifacts/bin/Aspire.OpenAI.Tests/Debug/net8.0/Aspire.OpenAI.Tests --internal-msbuild-node /home/REDACTED/.local/share/661286eb465842c797e5edf49bbfd5ce/.p --filter-not-trait category=failing --filter-not-trait quarantined=true --filter-not-trait outerloop=true (dns block)
    • Triggering command: /usr/share/dotnet/dotnet exec --runtimeconfig /home/REDACTED/work/aspire/aspire/artifacts/bin/Aspire.OpenAI.Tests/Debug/net8.0/Aspire.OpenAI.Tests.runtimeconfig.json --depsfile /home/REDACTED/work/aspire/aspire/artifacts/bin/Aspire.OpenAI.Tests/Debug/net8.0/Aspire.OpenAI.Tests.deps.json /home/REDACTED/work/aspire/aspire/artifacts/bin/Aspire.OpenAI.Tests/Debug/net8.0/Microsoft.DotNet.RemoteExecutor.dll Aspire.OpenAI.Tests, Version=42.42.42.42, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 Aspire.OpenAI.Tests.ConformanceTests <TracingEnablesTheRightActivitySource_Keyed>b__18_0 /tmp/fvlmr1zs.mxd (dns block)
    • Triggering command: /usr/share/dotnet/dotnet exec --runtimeconfig /home/REDACTED/work/aspire/aspire/artifacts/bin/Aspire.OpenAI.Tests/Debug/net8.0/Aspire.OpenAI.Tests.runtimeconfig.json --depsfile /home/REDACTED/work/aspire/aspire/artifacts/bin/Aspire.OpenAI.Tests/Debug/net8.0/Aspire.OpenAI.Tests.deps.json /home/REDACTED/work/aspire/aspire/artifacts/bin/Aspire.OpenAI.Tests/Debug/net8.0/Microsoft.DotNet.RemoteExecutor.dll Aspire.OpenAI.Tests, Version=42.42.42.42, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 Aspire.OpenAI.Tests.ConformanceTests <TracingEnablesTheRightActivitySource>b__17_0 /tmp/0l4ixw0s.efn (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Update Microsoft.Extensions.AI to 9.9.1</issue_title>
<issue_description>Update Microsoft.Extensions.AI package to 9.9.1
Update Microsoft.Extensions.AI.OpenAI to 9.9.1-preview.1.25474.6
Update Microsoft.Extensions.AI.AzureAIInference to 9.9.1-preview.1.25474.6</issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #11669

💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI changed the title [WIP] Update Microsoft.Extensions.AI to 9.9.1 Update Microsoft.Extensions.AI to 9.9.1 and related packages Sep 26, 2025
Copilot AI requested a review from JamesNK September 26, 2025 04:48
Copilot finished work on behalf of JamesNK September 26, 2025 04:48
@github-actions
Copy link
Contributor

github-actions bot commented Sep 26, 2025

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 11670

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 11670"

@JamesNK JamesNK changed the title Update Microsoft.Extensions.AI to 9.9.1 and related packages Update Microsoft.Extensions.AI packages, use content env var Sep 26, 2025
@JamesNK JamesNK marked this pull request as ready for review September 26, 2025 05:59
@Copilot Copilot AI review requested due to automatic review settings September 26, 2025 05:59
Copy link
Contributor

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

Updates Microsoft.Extensions.AI packages from version 9.9.0 to 9.9.1 and associated preview packages, along with OpenAI dependency from 2.4.0 to 2.5.0. Additionally introduces environment variable support for configuring sensitive telemetry data capture through the OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT environment variable.

  • Package version updates for Microsoft.Extensions.AI ecosystem
  • New shared telemetry helper class for environment variable configuration
  • Updated default behavior for sensitive telemetry data collection

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Components/Common/AITelemetryHelpers.cs New helper class providing environment variable-based configuration for sensitive data telemetry
src/Components/Aspire.Azure.AI.OpenAI/AzureOpenAISettings.cs Updated to use environment variable default for EnableSensitiveTelemetryData property
src/Components/Aspire.Azure.AI.OpenAI/Aspire.Azure.AI.OpenAI.csproj Added reference to shared AITelemetryHelpers.cs
src/Components/Aspire.Azure.AI.Inference/ChatCompletionsClientSettings.cs Updated to use environment variable default for EnableSensitiveTelemetryData property
src/Components/Aspire.Azure.AI.Inference/Aspire.Azure.AI.Inference.csproj Added reference to shared AITelemetryHelpers.cs
playground/GitHubModelsEndToEnd/GitHubModelsEndToEnd.WebStory/Program.cs Removed explicit EnableSensitiveTelemetryData setting, now using environment variable default
eng/Versions.props Updated Microsoft.Extensions.AI package versions
Directory.Packages.props Updated OpenAI package version from 2.4.0 to 2.5.0

@eerhardt eerhardt merged commit 98bb051 into main Sep 26, 2025
311 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 9.6 milestone Sep 26, 2025
@JamesNK
Copy link
Member

JamesNK commented Sep 30, 2025

/backport to release/9.5

@github-actions
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Microsoft.Extensions.AI to 9.9.1

3 participants