Skip to content

Conversation

stephentoub
Copy link
Member

@stephentoub stephentoub commented Sep 6, 2025

Microsoft Reviewers: Open in CodeFlow

@stephentoub stephentoub requested review from a team as code owners September 6, 2025 03:00
@github-actions github-actions bot added the area-ai Microsoft.Extensions.AI libraries label Sep 6, 2025
Copy link
Contributor

@Copilot 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 package dependency from version 2.3.0 to 2.4.0, enabling the use of newly available public properties in the OpenAI client library to replace reflection-based property access.

  • Updates package references to OpenAI 2.4.0 and Azure.AI.OpenAI 2.3.0-beta.2
  • Removes reflection-based workarounds for accessing endpoint properties by using newly exposed public properties
  • Refactors response tool creation and function call handling to align with OpenAI 2.4.0 API changes

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
General.props Updates OpenAI package version to 2.4.0
TestOnly.props Updates Azure.AI.OpenAI test package to 2.3.0-beta.2
CHANGELOG.md Documents OpenAI 2.4.0 dependency update
OpenAIChatClient.cs Replaces reflection with direct endpoint property access
OpenAIAssistantsChatClient.cs Replaces reflection with direct endpoint property access
OpenAIEmbeddingGenerator.cs Replaces reflection with direct endpoint property access
OpenAIImageGenerator.cs Replaces reflection with direct endpoint property access
OpenAISpeechToTextClient.cs Replaces reflection with direct endpoint property access
OpenAIResponsesChatClient.cs Updates function call handling and response tool creation for 2.4.0 API
MicrosoftExtensionsAIResponsesExtensions.cs Updates return type for response tool creation
OpenAIResponseClientTests.cs Updates test data formatting and removes helper methods
OpenAIChatClientTests.cs Removes internal JSON helper class
OpenAIResponseClientIntegrationTests.cs Updates test prompt text
ChatClientIntegrationTests.cs Updates test assertions and prompts

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@evgenyfedorov2 evgenyfedorov2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving the infra part

@stephentoub stephentoub merged commit a5200db into dotnet:main Sep 6, 2025
7 checks passed
@stephentoub stephentoub deleted the updateopenai240 branch September 6, 2025 17:41
joperezr pushed a commit that referenced this pull request Sep 9, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Oct 7, 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.

3 participants