Upgrade OpenAI package from 2.10.0 to 2.11.0#7544
Merged
Merged
Conversation
- Bump OpenAI version to 2.11.0 in central package management Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
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
OpenAIfrom 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. |
jeffhandley
approved these changes
Jun 8, 2026
Collaborator
🎉 Good job! The coverage increased 🎉
Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1454833&view=codecoverage-tab |
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
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.
Microsoft Reviewers: Open in CodeFlow
Fixes #7509.