3 references to AsEmbeddingGenerator
Microsoft.Extensions.AI.OpenAI.Tests (3)
OpenAIEmbeddingGeneratorTests.cs (3)
38Assert.Throws<ArgumentNullException>("embeddingClient", () => ((EmbeddingClient)null!).AsEmbeddingGenerator()); 62embeddingGenerator = client.GetEmbeddingClient(model).AsEmbeddingGenerator(); 99IEmbeddingGenerator<string, Embedding<float>> embeddingGenerator = openAIClient.AsEmbeddingGenerator();