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
accountEndpoint
stringThe endpoint of the Azure OpenAI service.
logger
ILogger<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
textOperationRequest
InternalTextOperationRequestThe text operation request to execute.
Returns
- Task<InternalTextOperationResult>
The result of the operation.