Skip to content

Update OpenAI to 2.9.1, Azure.AI.OpenAI to 2.9.0-beta.1, Azure.AI.Projects to 2.0.0-beta.2, Microsoft.Extensions.AI* to 10.4.0#13668

Merged
rogerbarreto merged 8 commits intomainfrom
copilot/update-nuget-packages-ai
Mar 19, 2026
Merged

Update OpenAI to 2.9.1, Azure.AI.OpenAI to 2.9.0-beta.1, Azure.AI.Projects to 2.0.0-beta.2, Microsoft.Extensions.AI* to 10.4.0#13668
rogerbarreto merged 8 commits intomainfrom
copilot/update-nuget-packages-ai

Conversation

Copy link
Contributor

Copilot AI commented Mar 17, 2026

Motivation and Context

Bumps core AI SDK dependencies to their latest versions to pick up new features and fixes.

Description

Updates the following packages in Directory.Packages.props:

  • OpenAI 2.8.0 → 2.9.1
  • Azure.AI.OpenAI 2.8.0-beta.1 → 2.9.0-beta.1
  • Azure.AI.Projects 1.1.0 → 2.0.0-beta.2
  • Azure.Identity 1.17.1 → 1.19.0 (cascading dependency from Azure.AI.Projects 2.0.0-beta.2)
  • Microsoft.Extensions.AI* 10.3.0 → 10.4.0
  • System.Text.Json, System.Numerics.Tensors, Microsoft.Extensions.Logging.Abstractions, Microsoft.Bcl.AsyncInterfaces, System.Threading.Channels → 10.0.4

Addresses the following breaking changes introduced by OpenAI 2.9.1:

  • CreateInputImagePart BinaryData overload removed (replaced with data URI approach)
  • Realtime API type renames (ConversationToolRealtimeTool, ConversationSessionOptionsRealtimeConversationSessionOptions, etc.)
  • ResponsesClient constructor no longer accepts a model parameter; model is now specified on CreateResponseOptions.Model
  • ResponseResult.Instructions is now read-only

Code changes to adapt:

  • Added ModelId property to OpenAIResponseAgent and propagated it through ResponseCreationOptionsFactory
  • Updated unit tests (BaseOpenAIResponseClientTest, OpenAIResponseAgentExtensionsTests, OpenAIResponseExtensionsTests)
  • Updated integration tests (OpenAIResponseAgentTests, OpenAIResponseAgentFixture)
  • Updated BaseResponsesAgentTest and GettingStartedWithAgents samples
  • Updated AgentFrameworkMigration samples (GetResponsesClient, AsIChatClient, CreateAIAgent, modelId propagation)
  • Rewrote OpenAIRealtime demo for the restructured Realtime API event model

Contribution Checklist


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

@stephentoub
Copy link
Member

@copilot please update Azure.AI.Projects* to latest 2.0.0-beta.2

Copy link
Contributor Author

Copilot AI commented Mar 18, 2026

@copilot please update Azure.AI.Projects* to latest 2.0.0-beta.2

Done in c76d1c3. Updated Azure.AI.Projects from 1.1.0 to 2.0.0-beta.2, along with Azure.Identity from 1.17.1 to 1.19.0 (required as a cascading dependency). Full build passes with zero errors.

Copilot AI changed the title Update OpenAI to 2.9.1, Azure.AI.OpenAI to 2.9.0-beta.1, Microsoft.Extensions.AI* to 10.4.0 Update OpenAI to 2.9.1, Azure.AI.OpenAI to 2.9.0-beta.1, Azure.AI.Projects to 2.0.0-beta.2, Microsoft.Extensions.AI* to 10.4.0 Mar 18, 2026
Copilot AI and others added 6 commits March 18, 2026 21:49
…MEAI 10.4.0, and cascading deps

Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
- ResponsesClient constructor no longer takes a model parameter
- AzureOpenAIClient.GetResponsesClient() no longer takes an argument
- Model ID is now passed to OpenAIResponseAgent constructor
- CreateClient methods now return (ResponsesClient, string) tuples
- ExecuteAgentAsync/ExecuteStreamingAgentAsync accept modelId parameter

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…Options model, Realtime API renames, unit and integration tests

Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
…tors in migration samples

Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
… package downgrade

- Rename GeneratedImageQuality.Medium -> MediumQuality and .Low -> LowQuality
  to match OpenAI SDK 2.9.1 API changes
- Bump Microsoft.Extensions.DependencyInjection.Abstractions 10.0.3 -> 10.0.4
  to resolve NU1605 package downgrade error from Logging.Abstractions 10.0.4
@rogerbarreto rogerbarreto force-pushed the copilot/update-nuget-packages-ai branch from fe598b1 to 221f643 Compare March 18, 2026 21:50
- Remove unnecessary else clause (RCS1211)
- Add null-forgiving operator for ChatModelId and ChatDeploymentName
  properties that are validated via Assert.NotNull on configuration
@rogerbarreto rogerbarreto marked this pull request as ready for review March 18, 2026 22:58
@rogerbarreto rogerbarreto requested a review from a team as a code owner March 18, 2026 22:58
@rogerbarreto rogerbarreto self-assigned this Mar 18, 2026
@rogerbarreto rogerbarreto added this pull request to the merge queue Mar 19, 2026
Merged via the queue into main with commit 30aec16 Mar 19, 2026
18 checks passed
@rogerbarreto rogerbarreto deleted the copilot/update-nuget-packages-ai branch March 19, 2026 19:00
@github-project-automation github-project-automation bot moved this from In Review to Done in Agent Framework Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants