OpenAIEmbeddingGenerator Constructors
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.
Overloads
OpenAIEmbeddingGenerator(EmbeddingClient, Nullable<Int32>) | |
OpenAIEmbeddingGenerator(OpenAIClient, String, Nullable<Int32>) |
OpenAIEmbeddingGenerator(EmbeddingClient, Nullable<Int32>)
public OpenAIEmbeddingGenerator (OpenAI.Embeddings.EmbeddingClient embeddingClient, int? dimensions = default);
new Microsoft.Extensions.AI.OpenAIEmbeddingGenerator : OpenAI.Embeddings.EmbeddingClient * Nullable<int> -> Microsoft.Extensions.AI.OpenAIEmbeddingGenerator
Public Sub New (embeddingClient As EmbeddingClient, Optional dimensions As Nullable(Of Integer) = Nothing)
Parameters
- embeddingClient
- OpenAI.Embeddings.EmbeddingClient
Applies to
OpenAIEmbeddingGenerator(OpenAIClient, String, Nullable<Int32>)
public OpenAIEmbeddingGenerator (OpenAI.OpenAIClient openAIClient, string modelId, int? dimensions = default);
new Microsoft.Extensions.AI.OpenAIEmbeddingGenerator : OpenAI.OpenAIClient * string * Nullable<int> -> Microsoft.Extensions.AI.OpenAIEmbeddingGenerator
Public Sub New (openAIClient As OpenAIClient, modelId As String, Optional dimensions As Nullable(Of Integer) = Nothing)
Parameters
- openAIClient
- OpenAI.OpenAIClient
- modelId
- String
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.