5 references to AzureAIInferenceEmbeddingGenerator
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceExtensions.cs (1)
26
new
AzureAIInferenceEmbeddingGenerator
(embeddingsClient, modelId, dimensions);
Microsoft.Extensions.AI.AzureAIInference.Tests (4)
AzureAIInferenceEmbeddingGeneratorTests.cs (4)
23
Assert.Throws<ArgumentNullException>("embeddingsClient", () => new
AzureAIInferenceEmbeddingGenerator
(null!));
26
Assert.Throws<ArgumentException>("modelId", () => new
AzureAIInferenceEmbeddingGenerator
(client, ""));
27
Assert.Throws<ArgumentException>("modelId", () => new
AzureAIInferenceEmbeddingGenerator
(client, " "));
29
using var _ = new
AzureAIInferenceEmbeddingGenerator
(client);