6 references to Use
Aspire.Azure.AI.OpenAI.Tests (2)
AspireAzureOpenAIClientBuilderEmbeddingGeneratorExtensionsTests.cs (2)
205builder.AddAzureOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator", "testdeployment1").Use(TestMiddleware); 209builder.AddAzureOpenAIClient("openai").AddEmbeddingGenerator("testdeployment1").Use(TestMiddleware);
Aspire.OpenAI.Tests (2)
AspireOpenAIClientBuilderEmbeddingGeneratorExtensionsTests.cs (2)
206builder.AddOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator", "testdeployment1").Use(TestMiddleware); 210builder.AddOpenAIClient("openai").AddEmbeddingGenerator("testdeployment1").Use(TestMiddleware);
Microsoft.Extensions.AI.Tests (2)
Embeddings\UseDelegateEmbeddingGeneratorTests.cs (2)
21builder.Use((Func<IEnumerable<string>, EmbeddingGenerationOptions?, IEmbeddingGenerator<string, Embedding<float>>, CancellationToken, Task<GeneratedEmbeddings<Embedding<float>>>>)null!)); 53.Use(async (values, options, innerGenerator, cancellationToken) =>