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