Skip to content

Update OpenAI package version to 2.13.0 - #7726

Merged
jeffhandley merged 1 commit into
dotnet:mainfrom
jozkee:openai213
Sep 2, 2026
Merged

jeffhandley merged 1 commit into
dotnet:mainfrom
jozkee:openai213

Conversation

@jozkee

@jozkee jozkee commented Sep 1, 2026 •

Copy link
Copy Markdown
Member
Microsoft Reviewers: Open in CodeFlow

@jozkee
jozkee requested review from jeffhandley and a lite review from Copilot September 1, 2026 01:03
@jozkee
jozkee requested review from a team as code owners September 1, 2026 01:03

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.

🟡 Changes recommended

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This pull request updates the OpenAI .NET SDK dependency to 2.13.0 and adjusts OpenAIChatClient’s reasoning-content extraction logic to avoid failures when streaming updates contain an empty choices array (per openai-dotnet issue #1281).

Changes:

  • Bump OpenAI package version from 2.12.0 to 2.13.0.
  • Refactor reasoning-content extraction to use a shared helper that inspects the choices JSON safely when choices may be empty.
File summaries
File Description
src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIChatClient.cs Refactors reasoning-content extraction to avoid indexing into an empty choices array by inspecting the choices JSON.
eng/packages/General.props Updates the pinned OpenAI package version to 2.13.0.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@jeffhandley
jeffhandley merged commit b4b46cc into dotnet:main Sep 2, 2026
7 checks passed
@jozkee
jozkee deleted the openai213 branch September 2, 2026 16:07
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants