Class AzureOpenAITextCompletionService
- Namespace
 - FoundationaLLM.Gateway.Services
 
- Assembly
 - FoundationaLLM.Gateway.dll
 
Implementation of ITextOperationService using Azure OpenAI.
public class AzureOpenAITextCompletionService : ITextOperationService
  - Inheritance
 - 
      
      AzureOpenAITextCompletionService
 
- Implements
 
- Inherited Members
 
- Extension Methods
 
Constructors
AzureOpenAITextCompletionService(string, ILogger<AzureOpenAITextCompletionService>)
Initializes a new instance of the AzureOpenAITextCompletionService class.
public AzureOpenAITextCompletionService(string accountEndpoint, ILogger<AzureOpenAITextCompletionService> logger)
  Parameters
accountEndpointstringThe endpoint of the Azure OpenAI service.
loggerILogger<AzureOpenAITextCompletionService>
Methods
ExecuteTextOperation(InternalTextOperationRequest)
Executes a text operation (e.g., embedding or completion) on the provided text chunks.
public Task<InternalTextOperationResult> ExecuteTextOperation(InternalTextOperationRequest textOperationRequest)
  Parameters
textOperationRequestInternalTextOperationRequestThe text operation request to execute.
Returns
- Task<InternalTextOperationResult>
 The result of the operation.