7 references to AsEmbeddingGenerator
Microsoft.Extensions.AI.AzureAIInference.Tests (7)
AzureAIInferenceEmbeddingGeneratorIntegrationTests.cs (1)
10?.AsEmbeddingGenerator(TestRunnerConfiguration.Instance["AzureAIInference:EmbeddingModel"] ?? "text-embedding-3-small");
AzureAIInferenceEmbeddingGeneratorTests.cs (6)
35Assert.Throws<ArgumentNullException>("embeddingsClient", () => ((EmbeddingsClient)null!).AsEmbeddingGenerator()); 38Assert.Throws<ArgumentException>("modelId", () => client.AsEmbeddingGenerator(" ")); 40client.AsEmbeddingGenerator(null); 51IEmbeddingGenerator<string, Embedding<float>> embeddingGenerator = client.AsEmbeddingGenerator(model); 61var embeddingGenerator = client.AsEmbeddingGenerator("model"); 115}).AsEmbeddingGenerator("text-embedding-3-small");