Class AzureOpenAITextEmbeddingService
- Namespace
- FoundationaLLM.Gateway.Services
- Assembly
- FoundationaLLM.Gateway.dll
Implementation of ITextEmbeddingService using Azure OpenAI.
public class AzureOpenAITextEmbeddingService : ITextOperationService
- Inheritance
-
AzureOpenAITextEmbeddingService
- Implements
- Inherited Members
- Extension Methods
Constructors
AzureOpenAITextEmbeddingService(string, ILogger<AzureOpenAITextEmbeddingService>)
Initializes a new instance of the AzureOpenAITextEmbeddingService class.
public AzureOpenAITextEmbeddingService(string accountEndpoint, ILogger<AzureOpenAITextEmbeddingService> logger)
Parameters
accountEndpoint
stringThe endpoint of the Azure OpenAI service.
logger
ILogger<AzureOpenAITextEmbeddingService>
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.