Skip to content

.Net: Update to latest M.E.AI{.Abstractions} + OpenAI Related Packages #12685

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

Merged
merged 7 commits into from
Jul 18, 2025

Conversation

stephentoub
Copy link
Member

@stephentoub stephentoub commented Jul 9, 2025

This pull request updates package dependencies, refactors the OpenAI Realtime demo to align with API changes, and modifies related unit tests to reflect these updates. The most significant changes include updating package versions, transitioning from the RealtimeConversation API to the Realtime API, and adjusting test logic to accommodate updated data structures.

Dependency Updates:

  • Updated Azure.AI.OpenAI to version 2.2.0-beta.5 and OpenAI to version 2.2.0. [1] [2]
  • Updated System.Text.Json to version 8.0.6.
  • Upgraded Microsoft.Extensions.AI and related libraries to version 9.7.1.

OpenAI Realtime Demo Refactor:

  • Replaced RealtimeConversationClient and related classes with RealtimeClient and its updated API. This includes changes to session initialization, configuration, and item handling in Program.cs. [1] [2] [3]
  • Adjusted method calls and data types to align with the new API, such as replacing ConversationItem with RealtimeItem and updating event types like ConversationUpdate to RealtimeUpdate. [1] [2] [3]

Unit Test Updates:

  • Updated test cases to use new data structures, such as replacing IReadOnlyList<string> with IReadOnlyList<ReasoningSummaryPart> and adapting related assertions. [1] [2]
  • Added OPENAI001 to NoWarn lists in several .csproj files to suppress warnings related to the OpenAI SDK. [1] [2] [3]

@stephentoub stephentoub requested a review from a team as a code owner July 9, 2025 00:37
@moonbox3 moonbox3 added .NET Issue or Pull requests regarding .NET code kernel.core labels Jul 10, 2025
@github-actions github-actions bot changed the title Update to latest M.E.AI{.Abstractions} .Net: Update to latest M.E.AI{.Abstractions} Jul 10, 2025
@moonbox3 moonbox3 added the kernel Issues or pull requests impacting the core kernel label Jul 17, 2025
@rogerbarreto rogerbarreto changed the title .Net: Update to latest M.E.AI{.Abstractions} .Net: Update to latest M.E.AI{.Abstractions} + OpenAI Related Packages Jul 17, 2025
@stephentoub stephentoub added this pull request to the merge queue Jul 18, 2025
Merged via the queue into microsoft:main with commit d2b22ef Jul 18, 2025
19 checks passed
@stephentoub stephentoub deleted the updatemeai branch July 18, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel.core kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy