Skip to content

Upgrade to OpenAI 2.10.0#7450

Merged
jozkee merged 4 commits intodotnet:mainfrom
stephentoub:openai2100
Apr 8, 2026
Merged

Upgrade to OpenAI 2.10.0#7450
jozkee merged 4 commits intodotnet:mainfrom
stephentoub:openai2100

Conversation

@stephentoub
Copy link
Copy Markdown
Member

@stephentoub stephentoub commented Apr 5, 2026

Microsoft Reviewers: Open in CodeFlow

@stephentoub stephentoub requested a review from a team as a code owner April 5, 2026 12:44
Copilot AI review requested due to automatic review settings April 5, 2026 12:44
@github-actions github-actions bot added the area-ai Microsoft.Extensions.AI libraries label Apr 5, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 OpenAI integration layer and tests to align with OpenAI SDK 2.10.0 behaviors, adding coverage for newly supported streaming payloads and additional response item types.

Changes:

  • Add streaming TTS support (audio deltas + usage) and corresponding unit/integration tests.
  • Surface streaming transcription segment timing metadata + usage, with unit test coverage.
  • Update Responses client mapping/tests for new tool item types (apply_patch) and updated web_search source schema.
Show a summary per file
File Description
test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/OpenAITextToSpeechClientTests.cs Adds unit test validating streaming TTS yields multiple chunks and usage.
test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/OpenAITextToSpeechClientIntegrationTests.cs Adds integration test for streaming TTS updates + usage.
test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/OpenAISpeechToTextClientTests.cs Adds unit test validating streaming transcription segment timing + usage mapping.
test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/OpenAIResponseClientTests.cs Adds apply_patch tool test and updates web_search fixtures/assertions for new schema.
src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAITextToSpeechClient.cs Implements streaming TTS via SDK streaming API with fallback to non-streaming.
src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAISpeechToTextClient.cs Adds transcription usage mapping and segment timing support in streaming.
src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIResponsesChatClient.cs Adds apply_patch item mapping; updates web_search parsing; adjusts image/file input handling.

Copilot's findings

  • Files reviewed: 8/8 changed files
  • Comments generated: 2

- Use OpenAIClientExtensions.ImageUriToMediaType() when converting
  InputImageUri to UriContent, so a more specific media type (e.g.
  image/png) is inferred from the URL when possible, falling back
  to image/* otherwise.
- Source the streaming TTS model from TestRunnerConfiguration instead
  of hard-coding gpt-4o-mini-tts in the integration test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jozkee jozkee merged commit b3f2f40 into dotnet:main Apr 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-ai Microsoft.Extensions.AI libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants