次の方法で共有


AzureOpenAITextEmbeddingGenerationService Constructors

Definition

Overloads

AzureOpenAITextEmbeddingGenerationService(String, AzureOpenAIClient, String, ILoggerFactory, Nullable<Int32>)

Initializes a new instance of the AzureOpenAITextEmbeddingGenerationService class.

AzureOpenAITextEmbeddingGenerationService(String, String, TokenCredential, String, HttpClient, ILoggerFactory, Nullable<Int32>)

Initializes a new instance of the AzureOpenAITextEmbeddingGenerationService class.

AzureOpenAITextEmbeddingGenerationService(String, String, String, String, HttpClient, ILoggerFactory, Nullable<Int32>)

Initializes a new instance of the AzureOpenAITextEmbeddingGenerationService class.

AzureOpenAITextEmbeddingGenerationService(String, AzureOpenAIClient, String, ILoggerFactory, Nullable<Int32>)

Initializes a new instance of the AzureOpenAITextEmbeddingGenerationService class.

public AzureOpenAITextEmbeddingGenerationService (string deploymentName, Azure.AI.OpenAI.AzureOpenAIClient azureOpenAIClient, string? modelId = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default, int? dimensions = default);
new Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAITextEmbeddingGenerationService : string * Azure.AI.OpenAI.AzureOpenAIClient * string * Microsoft.Extensions.Logging.ILoggerFactory * Nullable<int> -> Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAITextEmbeddingGenerationService
Public Sub New (deploymentName As String, azureOpenAIClient As AzureOpenAIClient, Optional modelId As String = Nothing, Optional loggerFactory As ILoggerFactory = Nothing, Optional dimensions As Nullable(Of Integer) = Nothing)

Parameters

azureOpenAIClient
AzureOpenAIClient

Custom AzureOpenAIClient for HTTP requests.

loggerFactory
ILoggerFactory

The ILoggerFactory to use for logging. If null, no logging will be performed.

dimensions
Nullable<Int32>

The number of dimensions the resulting output embeddings should have. Only supported in "text-embedding-3" and later models.

Applies to

AzureOpenAITextEmbeddingGenerationService(String, String, TokenCredential, String, HttpClient, ILoggerFactory, Nullable<Int32>)

Initializes a new instance of the AzureOpenAITextEmbeddingGenerationService class.

public AzureOpenAITextEmbeddingGenerationService (string deploymentName, string endpoint, Azure.Core.TokenCredential credential, string? modelId = default, System.Net.Http.HttpClient? httpClient = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default, int? dimensions = default);
new Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAITextEmbeddingGenerationService : string * string * Azure.Core.TokenCredential * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILoggerFactory * Nullable<int> -> Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAITextEmbeddingGenerationService
Public Sub New (deploymentName As String, endpoint As String, credential As TokenCredential, Optional modelId As String = Nothing, Optional httpClient As HttpClient = Nothing, Optional loggerFactory As ILoggerFactory = Nothing, Optional dimensions As Nullable(Of Integer) = Nothing)

Parameters

credential
TokenCredential

Token credentials, e.g. DefaultAzureCredential, ManagedIdentityCredential, EnvironmentCredential, etc.

httpClient
HttpClient

Custom HttpClient for HTTP requests.

loggerFactory
ILoggerFactory

The ILoggerFactory to use for logging. If null, no logging will be performed.

dimensions
Nullable<Int32>

The number of dimensions the resulting output embeddings should have. Only supported in "text-embedding-3" and later models.

Applies to

AzureOpenAITextEmbeddingGenerationService(String, String, String, String, HttpClient, ILoggerFactory, Nullable<Int32>)

Initializes a new instance of the AzureOpenAITextEmbeddingGenerationService class.

public AzureOpenAITextEmbeddingGenerationService (string deploymentName, string endpoint, string apiKey, string? modelId = default, System.Net.Http.HttpClient? httpClient = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default, int? dimensions = default);
new Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAITextEmbeddingGenerationService : string * string * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILoggerFactory * Nullable<int> -> Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAITextEmbeddingGenerationService
Public Sub New (deploymentName As String, endpoint As String, apiKey As String, Optional modelId As String = Nothing, Optional httpClient As HttpClient = Nothing, Optional loggerFactory As ILoggerFactory = Nothing, Optional dimensions As Nullable(Of Integer) = Nothing)

Parameters

httpClient
HttpClient

Custom HttpClient for HTTP requests.

loggerFactory
ILoggerFactory

The ILoggerFactory to use for logging. If null, no logging will be performed.

dimensions
Nullable<Int32>

The number of dimensions the resulting output embeddings should have. Only supported in "text-embedding-3" and later models.

Applies to