Skip to content

.Net: Migrate AzureOpenAITextToAudioService to Azure.AI.OpenAI SDK v2 - #7102

Merged
SergeyMenshykh merged 6 commits into
microsoft:feature-connectors-openaifrom
SergeyMenshykh:migrate-azure-text-to-audio-service-2
Jul 5, 2024
Merged

.Net: Migrate AzureOpenAITextToAudioService to Azure.AI.OpenAI SDK v2#7102
SergeyMenshykh merged 6 commits into
microsoft:feature-connectors-openaifrom
SergeyMenshykh:migrate-azure-text-to-audio-service-2

Conversation

@SergeyMenshykh

@SergeyMenshykh SergeyMenshykh commented Jul 4, 2024

Copy link
Copy Markdown
Contributor

Motivation and Context

This PR migrates AzureOpenAITextToAudioService to Azure.AI.OpenAI SDK v2.

Description

  1. The new AzureOpenAITextToAudioExecutionSettings class is added to represent prompt execution settings for AzureOpenAITextToAudioService. Both AzureOpenAITextToAudioService classes that SK has today use the same prompt execution settings class - OpenAITextToAudioExecutionSettings. This is a breaking change that is tracked in the issue - .Net: AzureOpenAI migration breaking changes #7053, and it will be decided later whether to proceed with the change or roll it back.
  2. The ClientCore.TextToAudio.cs class is refactored to use the new AzureOpenAITextToAudioExecutionSettings class.
  3. The ClientCore.TextToAudio.cs class is refactored to decide which model id to use - the one from the prompt execution setting, the one supplied when registering the connector, or to use the deployment name if no model id is provided. This is done for backward compatibility with the existing AzureOpenAITextToAudioService. .Net: Revise ModelId/DeploymentName fallback logic for the AzureOpenAITextToAudioService #7104
  4. Service collection and kernel builder extension methods are added to register the service in the DI container.
  5. Unit and integration tests are added as well.

@SergeyMenshykh SergeyMenshykh self-assigned this Jul 4, 2024
@SergeyMenshykh
SergeyMenshykh requested a review from a team as a code owner July 4, 2024 22:53
@markwallace-microsoft Mark Wallace (markwallace-microsoft) added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Jul 4, 2024
@SergeyMenshykh
SergeyMenshykh merged commit b458a74 into microsoft:feature-connectors-openai Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants