.Net: Update Microsoft.Extensions.AI dependencies to 10.3.0 and OpenAI SDK to 2.8.0#13544
Open
.Net: Update Microsoft.Extensions.AI dependencies to 10.3.0 and OpenAI SDK to 2.8.0#13544
Conversation
…ions Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update Microsoft.Extensions.AI dependencies to latest versions
Update Microsoft.Extensions.AI dependencies to 10.3.0
Feb 12, 2026
Member
@copilot, yes, it does |
stephentoub
reviewed
Feb 12, 2026
Member
|
@copilot, OpenAI and Azure.AI.OpenAI should also both be updated to the latest versions on nuget, e.g. 2.8.0 |
…→ResponsesClient, OpenAIResponse→ResponseResult, ResponseCreationOptions→CreateResponseOptions, GetOpenAIResponseClient→GetResponsesClient Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
…type renames Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
…ionFactory in samples Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
…onseOptions Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Contributor
Author
... You're right, |
Copilot
AI
changed the title
Update Microsoft.Extensions.AI dependencies to 10.3.0
Update Microsoft.Extensions.AI dependencies to 10.3.0 and OpenAI SDK to 2.8.0
Feb 12, 2026
stephentoub
reviewed
Feb 12, 2026
dotnet/src/SemanticKernel.Abstractions/AI/PromptExecutionSettingsExtensions.cs
Show resolved
Hide resolved
Contributor
Author
… option Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
rogerbarreto
approved these changes
Feb 12, 2026
SergeyMenshykh
approved these changes
Feb 13, 2026
github-merge-queue bot
pushed a commit
that referenced
this pull request
Feb 13, 2026
…I SDK to 2.8.0 (#13544) ### Motivation and Context Updates Microsoft.Extensions.AI packages to latest stable releases (10.3.0) and OpenAI SDK to 2.8.0. The new versions require transitive dependency updates and fixing breaking type renames in the OpenAI Responses API. Additionally, the new `ChatOptions.Reasoning` property is now mapped from `PromptExecutionSettings` and used in samples instead of `RawRepresentationFactory`. ### Description **Package Updates:** - `Microsoft.Extensions.AI` and `Microsoft.Extensions.AI.Abstractions`: 10.2.0 → 10.3.0 - `Microsoft.Extensions.AI.OpenAI`: 10.0.1-preview → 10.3.0 (stable) - `OpenAI`: 2.7.0 → 2.8.0 - `Azure.AI.OpenAI`: 2.7.0-beta.2 → 2.8.0-beta.1 - Transitive dependencies → 10.0.3: - `System.Text.Json` - `System.Numerics.Tensors` - `Microsoft.Extensions.Logging.Abstractions` - `Microsoft.Bcl.AsyncInterfaces` - `System.Threading.Channels` **OpenAI 2.8.0 Breaking Changes Fixed (~23 files):** - `OpenAIResponseClient` → `ResponsesClient` - `ResponseCreationOptions` → `CreateResponseOptions` - `OpenAIResponse` → `ResponseResult` - `GetOpenAIResponseClient()` → `GetResponsesClient()` - API: Input items now passed via `CreateResponseOptions.InputItems` instead of separate parameter - API: `StreamingEnabled = true` required for streaming calls - `OpenAIResponsesModelFactory` removed → using public constructors in tests **ChatOptions.Reasoning Mapping:** - Added `reasoning_effort` → `ChatOptions.Reasoning.Effort` mapping in `PromptExecutionSettingsExtensions.ToChatOptions`, supporting `low`, `medium`, `high`, and `xhigh` (→ ExtraHigh) effort levels per OpenAI API documentation - Replaced `RawRepresentationFactory` with `ChatOptions.Reasoning` in the OpenAI and AzureOpenAI Step02_ReasoningModel sample files - Updated migration documentation in `.github/upgrades/prompts/SemanticKernelToAgentFramework.md` to use `TruncationMode` as the provider-specific options example (since reasoning now has a direct `ChatOptions` equivalent) ### Contribution Checklist - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄 <!-- START COPILOT CODING AGENT TIPS --> --- 💡 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](https://gh.io/copilot-coding-agent-tips) in the docs. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com> Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com>
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.
Motivation and Context
Updates Microsoft.Extensions.AI packages to latest stable releases (10.3.0) and OpenAI SDK to 2.8.0. The new versions require transitive dependency updates and fixing breaking type renames in the OpenAI Responses API. Additionally, the new
ChatOptions.Reasoningproperty is now mapped fromPromptExecutionSettingsand used in samples instead ofRawRepresentationFactory.Description
Package Updates:
Microsoft.Extensions.AIandMicrosoft.Extensions.AI.Abstractions: 10.2.0 → 10.3.0Microsoft.Extensions.AI.OpenAI: 10.0.1-preview → 10.3.0 (stable)OpenAI: 2.7.0 → 2.8.0Azure.AI.OpenAI: 2.7.0-beta.2 → 2.8.0-beta.1System.Text.JsonSystem.Numerics.TensorsMicrosoft.Extensions.Logging.AbstractionsMicrosoft.Bcl.AsyncInterfacesSystem.Threading.ChannelsOpenAI 2.8.0 Breaking Changes Fixed (~23 files):
OpenAIResponseClient→ResponsesClientResponseCreationOptions→CreateResponseOptionsOpenAIResponse→ResponseResultGetOpenAIResponseClient()→GetResponsesClient()CreateResponseOptions.InputItemsinstead of separate parameterStreamingEnabled = truerequired for streaming callsOpenAIResponsesModelFactoryremoved → using public constructors in testsChatOptions.Reasoning Mapping:
reasoning_effort→ChatOptions.Reasoning.Effortmapping inPromptExecutionSettingsExtensions.ToChatOptions, supportinglow,medium,high, andxhigh(→ ExtraHigh) effort levels per OpenAI API documentationRawRepresentationFactorywithChatOptions.Reasoningin the OpenAI and AzureOpenAI Step02_ReasoningModel sample files.github/upgrades/prompts/SemanticKernelToAgentFramework.mdto useTruncationModeas the provider-specific options example (since reasoning now has a directChatOptionsequivalent)Contribution Checklist
💡 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.