AzureAIInferenceEmbeddingGenerator Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the AzureAIInferenceEmbeddingGenerator class.
public AzureAIInferenceEmbeddingGenerator (Azure.AI.Inference.EmbeddingsClient embeddingsClient, string? modelId = default, int? dimensions = default);
new Microsoft.Extensions.AI.AzureAIInferenceEmbeddingGenerator : Azure.AI.Inference.EmbeddingsClient * string * Nullable<int> -> Microsoft.Extensions.AI.AzureAIInferenceEmbeddingGenerator
Public Sub New (embeddingsClient As EmbeddingsClient, Optional modelId As String = Nothing, Optional dimensions As Nullable(Of Integer) = Nothing)
Parameters
- embeddingsClient
- EmbeddingsClient
The underlying client.
- modelId
- String
The id of the model to use. This may also be overridden per request via ModelId. Either this parameter or ModelId must provide a valid model id.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.