Skip to content

Conversation

@stephentoub
Copy link
Member

@stephentoub stephentoub commented Aug 4, 2025

Microsoft Reviewers: Open in CodeFlow

@stephentoub stephentoub requested review from a team as code owners August 4, 2025 21:30
@github-actions github-actions bot added the area-ai Microsoft.Extensions.AI libraries label Aug 4, 2025
Copy link
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

This PR updates the OpenAI library dependency from version 2.2.0 to 2.3.0 and makes necessary code adjustments to accommodate API changes in the new version.

  • Updates OpenAI package reference from 2.2.0 to 2.3.0
  • Replaces reflection-based model field access with new public Model property
  • Updates test models from "whisper-1" to "gpt-4o-transcribe"
  • Implements previously stubbed AsOpenAIResponse extension method

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
eng/packages/General.props Updates OpenAI package version to 2.3.0
src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIChatClient.cs Replaces reflection access with public Model property
src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIEmbeddingGenerator.cs Replaces reflection access with public Model property
src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAISpeechToTextClient.cs Replaces reflection access with public Model property
src/Libraries/Microsoft.Extensions.AI.OpenAI/MicrosoftExtensionsAIResponsesExtensions.cs Implements AsOpenAIResponse method and makes it public
test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/OpenAISpeechToTextClientTests.cs Updates test model names and removes namespace prefix
test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/OpenAIConversionTests.cs Adds comprehensive tests for AsOpenAIResponse method
Comments suppressed due to low confidence (1)

eng/packages/General.props:19

  • OpenAI version 2.3.0 may not exist. My knowledge cutoff is January 2025, and version 2.3.0 was not available at that time. Please verify this version exists in the package repository.
    <PackageVersion Include="OpenAI" Version="2.3.0" />

@stephentoub stephentoub merged commit f1f8260 into dotnet:main Aug 5, 2025
6 checks passed
@stephentoub stephentoub deleted the updateopenai230 branch August 5, 2025 15:00
@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-ai Microsoft.Extensions.AI libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants