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: AzureOpenAIChatCompletionService Functionality Cleanup #7024

Conversation

SergeyMenshykh
Copy link
Member

@SergeyMenshykh SergeyMenshykh commented Jul 1, 2024

Motivation and Context

This PR is a follow-up to the one that migrated the AzureOpenAIChatCompletionService class to Azure AI SDK v2 but did not properly refactor it, leaving class, member, and variable names unchanged to minimize the number of changes and simplify the code review process.

Description

This PR does the following:
1. No functional changes - just deletion and renaming.
2. Renames ClientCore class methods and method variables to reflect their actual purpose/functionality.
3. Renames class members of other classes related to and used by the AzureOpenAIChatCompletionService.
4. Renames AzureOpenAIPromptExecutionSettings class to AzureOpenAIChatCompletionExecutionSettings to indicate that it belongs to the chat completion service and not to any other one.
5. Removes the AzureOpenAIStreamingTextContent class used by the text generation service, which has been deprecated and is not supported by Azure AI SDK v2.
6. Improves the resiliency of AzureOpenAIChatCompletionService integration tests by using a base integration class with a preconfigured resilience handler to handle 429 responses.

1. Rename classes, class members and variables of the service and the model classes to reflect their actual purpose/functionality.
2. Remove unnecessary classes.
3. Make integration tests more resilient to 429 responses.
@SergeyMenshykh SergeyMenshykh self-assigned this Jul 1, 2024
@SergeyMenshykh SergeyMenshykh requested a review from a team as a code owner July 1, 2024 12:03
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Jul 1, 2024
@github-actions github-actions bot changed the title .NET: AzureOpenAIChatCompletionService Functionality Cleanup .Net: AzureOpenAIChatCompletionService Functionality Cleanup Jul 1, 2024
Copy link
Member

@RogerBarreto RogerBarreto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit. Rename internal/private method.

@SergeyMenshykh SergeyMenshykh merged commit c4c1878 into microsoft:feature-connectors-openai Jul 1, 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.

3 participants