Skip to content

Upgrade OpenAI package from 2.10.0 to 2.11.0#7544

Merged
jozkee merged 1 commit into
mainfrom
agents/openai-package-ingestion-2110
Jun 8, 2026
Merged

Upgrade OpenAI package from 2.10.0 to 2.11.0#7544
jozkee merged 1 commit into
mainfrom
agents/openai-package-ingestion-2110

Conversation

@jozkee

@jozkee jozkee commented Jun 8, 2026

Copy link
Copy Markdown
Member
  • Bump OpenAI version to 2.11.0 in central package management.
  • Ran integration tests to validate ingestion.
  • Walked through the changelog and reacted to some breaking changes. There're additions that we could use to build new abstractions that can be evaluated in the future.
Microsoft Reviewers: Open in CodeFlow

Fixes #7509.

- Bump OpenAI version to 2.11.0 in central package management

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jozkee jozkee requested a review from jeffhandley June 8, 2026 18:40
@jozkee jozkee requested a review from a team as a code owner June 8, 2026 18:40
Copilot AI review requested due to automatic review settings June 8, 2026 18:40
@jozkee jozkee requested a review from a team as a code owner June 8, 2026 18:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the repository’s OpenAI .NET SDK dependency to OpenAI 2.11.0 and applies the minimal source changes needed for the new SDK surface, primarily in the OpenAI AI integration layer.

Changes:

  • Bumped the centrally-managed NuGet package version for OpenAI from 2.10.0 to 2.11.0.
  • Updated container file upload call site to use the renamed SDK method.
  • Adjusted a switch expression arm to explicitly return a nullable enum value for correct type inference.

Reviewed changes

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

File Description
src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIResponsesChatClient.cs Updates switch expression default arm to explicitly return a nullable ImageGenerationToolOutputFileFormat? value.
src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIHostedFileClient.cs Replaces CreateContainerFileAsync with UploadContainerFileAsync to align with the updated OpenAI SDK API.
eng/packages/General.props Central package management bump of OpenAI to 2.11.0.

@dotnet-comment-bot

Copy link
Copy Markdown
Collaborator

‼️ Found issues ‼️

Project Coverage Type Expected Actual
Microsoft.Extensions.Diagnostics.Testing Line 99 98.65 🔻
Microsoft.Extensions.Telemetry Line 93 91.95 🔻
Microsoft.Extensions.AI Line 89 88.54 🔻
Microsoft.Extensions.AI Branch 89 88.53 🔻
Microsoft.Extensions.AI.OpenAI Line 75 62.62 🔻
Microsoft.Extensions.AI.OpenAI Branch 75 49.63 🔻
Microsoft.Extensions.DataIngestion.MarkItDown Line 75 4.46 🔻
Microsoft.Extensions.DataIngestion.MarkItDown Branch 75 0 🔻
Microsoft.Extensions.Diagnostics.ResourceMonitoring Line 99 96.03 🔻
Microsoft.Extensions.Diagnostics.ResourceMonitoring Branch 99 94.39 🔻
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes Line 99 97.73 🔻
Microsoft.Extensions.ServiceDiscovery.Dns Line 75 69.93 🔻
Microsoft.Extensions.ServiceDiscovery.Abstractions Line 75 42.11 🔻
Microsoft.Extensions.ServiceDiscovery.Abstractions Branch 75 42.86 🔻
Microsoft.Extensions.ServiceDiscovery Line 75 67.21 🔻
Microsoft.Extensions.ServiceDiscovery Branch 75 71.43 🔻
Microsoft.Extensions.ServiceDiscovery.Yarp Line 75 73.85 🔻
Microsoft.Extensions.ServiceDiscovery.Yarp Branch 75 70 🔻
Microsoft.Extensions.VectorData.Abstractions Line 75 37.39 🔻
Microsoft.Extensions.VectorData.Abstractions Branch 75 22.73 🔻

🎉 Good job! The coverage increased 🎉
Update MinCodeCoverage in the project files.

Project Expected Actual
Microsoft.Gen.BuildMetadata 97 100
Microsoft.Gen.MetadataExtractor 57 73
Microsoft.Gen.MetricsReports 67 69
Microsoft.Extensions.AI.Abstractions 82 85
Microsoft.Extensions.AI.Evaluation.NLP 0 78
Microsoft.Extensions.Caching.Hybrid 82 84
Microsoft.Extensions.DataIngestion 75 89
Microsoft.Extensions.DataIngestion.Markdig 75 90
Microsoft.Extensions.Http.Resilience 97 100

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1454833&view=codecoverage-tab

@jozkee jozkee merged commit 496ab4c into main Jun 8, 2026
9 checks passed
@jozkee jozkee deleted the agents/openai-package-ingestion-2110 branch June 8, 2026 19:57
jeffhandley added a commit that referenced this pull request Jun 8, 2026
…7545)

Upgrade OpenAI package from 2.10.0 to 2.11.0 (#7544)

- Bump OpenAI version to 2.11.0 in central package management

Co-authored-by: David Cantú <dacantu@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

React to OpenAI upcoming release 2.10.1 or 2.11.0

4 participants