-
Notifications
You must be signed in to change notification settings - Fork 839
Update to OpenAI 2.5.0 #6839
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.5.0 #6839
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
Updates the OpenAI package dependency from version 2.4.0 to 2.5.0 across the Microsoft.Extensions.AI.OpenAI library and tests, incorporating new API features and fixes.
- Updated OpenAI package version to 2.5.0
- Refactored code to use new OpenAI 2.5.0 APIs, removing reflection-based workarounds
- Added user agent header validation tests to ensure proper library identification
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
eng/packages/General.props | Updates OpenAI package version from 2.4.0 to 2.5.0 |
src/Libraries/Microsoft.Extensions.AI.OpenAI/CHANGELOG.md | Documents the OpenAI version update |
src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIResponsesChatClient.cs | Uses new public Model property and updated API methods |
src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIEmbeddingGenerator.cs | Adds reflection-based workaround for RequestOptions support |
test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/ThrowUserAgentExceptionHandler.cs | New test helper to validate user agent headers |
test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/OpenAIResponseClientTests.cs | Adds user agent validation test and updates method signature |
test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/OpenAIEmbeddingGeneratorTests.cs | Adds user agent validation test and refactors helper method |
test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/OpenAIChatClientTests.cs | Adds user agent validation test |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Microsoft Reviewers: Open in CodeFlow