-
Notifications
You must be signed in to change notification settings - Fork 839
Update to OpenAI 2.4.0 #6777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to OpenAI 2.4.0 #6777
Conversation
There was a problem hiding this 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.
src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIResponsesChatClient.cs
Show resolved
Hide resolved
There was a problem hiding this 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
Microsoft Reviewers: Open in CodeFlow