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: Split ClientCore class #7060

Conversation

SergeyMenshykh
Copy link
Member

Motivation and Context

The ClientCore class has absorbed functionality relevant to different Azure OpenAI-related services. As a first step to reduce its size, it makes sense to split it into small chunks, where each chunk would be related to a service that uses it. Later, we can move those chunks to the services themselves.

Description

This PR does the following:

  1. Does not change any logic in any of the services.
  2. Splits the ClientCore class into ClientCore.ChatCompletion and ClientCore.Embeddings files.
  3. Refactors the AzureOpenAIChatCompletionService and AzureOpenAITextEmbeddingGenerationService to use the relevant ClientCore pieces.
  4. Removes the AzureOpenAIClientCore class

@SergeyMenshykh SergeyMenshykh requested a review from a team as a code owner July 2, 2024 15:41
@SergeyMenshykh SergeyMenshykh self-assigned this Jul 2, 2024
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Jul 2, 2024
@SergeyMenshykh SergeyMenshykh merged commit f266504 into microsoft:feature-connectors-openai Jul 2, 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