Skip to content
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

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

Conversation

SergeyMenshykh
Copy link
Member

@SergeyMenshykh SergeyMenshykh commented Jul 4, 2024

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 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
10 checks passed
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