.Net: Update to latest M.E.AI{.Abstractions} + OpenAI Related Packages #12685
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 theRealtime
API, and adjusting test logic to accommodate updated data structures.Dependency Updates:
Azure.AI.OpenAI
to version2.2.0-beta.5
andOpenAI
to version2.2.0
. [1] [2]System.Text.Json
to version8.0.6
.Microsoft.Extensions.AI
and related libraries to version9.7.1
.OpenAI Realtime Demo Refactor:
RealtimeConversationClient
and related classes withRealtimeClient
and its updated API. This includes changes to session initialization, configuration, and item handling inProgram.cs
. [1] [2] [3]ConversationItem
withRealtimeItem
and updating event types likeConversationUpdate
toRealtimeUpdate
. [1] [2] [3]Unit Test Updates:
IReadOnlyList<string>
withIReadOnlyList<ReasoningSummaryPart>
and adapting related assertions. [1] [2]OPENAI001
toNoWarn
lists in several.csproj
files to suppress warnings related to the OpenAI SDK. [1] [2] [3]