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