-
Notifications
You must be signed in to change notification settings - Fork 800
.NET: Update to latest MEAI 10.0.1 and OpenAI 2.7.0 #2392
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
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 Microsoft.Extensions.AI packages from version 10.0.0 to 10.0.1 and OpenAI from 2.6.0 to 2.7.0, adapting the codebase to handle breaking changes in how continuation tokens are typed in the updated MEAI library.
Key Changes:
- Updated package versions for Microsoft.Extensions.AI ecosystem and OpenAI SDK
- Added type casts (
as ResponseContinuationToken) in production code to handle the change fromobject?toResponseContinuationToken?in MEAI's ChatOptions, ChatResponse, and ChatResponseUpdate - Updated unit tests to create proper ResponseContinuationToken instances using
ResponseContinuationToken.FromBytes()instead ofnew object()
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| dotnet/Directory.Packages.props | Updated package versions for Microsoft.Extensions.AI (10.0.0 → 10.0.1), Microsoft.Extensions.AI.OpenAI, OpenAI (2.6.0 → 2.7.0), System.ClientModel (1.8.0 → 1.8.1), and Azure.AI.Projects.OpenAI |
| dotnet/src/Microsoft.Agents.AI/ChatClient/ChatClientAgent.cs | Added type cast to ResponseContinuationToken when assigning continuation token from AgentRunOptions to ChatOptions |
| dotnet/src/Microsoft.Agents.AI.Abstractions/AgentRunResponseExtensions.cs | Added type casts to ResponseContinuationToken when creating ChatResponse and ChatResponseUpdate from agent run responses |
| dotnet/tests/Microsoft.Agents.AI.UnitTests/ChatClient/ChatClientAgentTests.cs | Updated test setup to create ResponseContinuationToken instances using FromBytes() instead of creating plain objects |
| dotnet/tests/Microsoft.Agents.AI.Abstractions.UnitTests/AgentRunResponseUpdateTests.cs | Updated test to create ResponseContinuationToken instance using FromBytes() method |
6fb254e to
0ad6da1
Compare
No description provided.