8 references to Use
Aspire.Azure.AI.OpenAI.Tests (2)
AspireAzureOpenAIClientBuilderChatClientExtensionsTests.cs (2)
205builder.AddAzureOpenAIClient("openai").AddKeyedChatClient("openai_chatclient", "testdeployment1").Use(TestMiddleware, null); 209builder.AddAzureOpenAIClient("openai").AddChatClient("testdeployment1").Use(TestMiddleware, null);
Aspire.OpenAI.Tests (2)
AspireOpenAIClientBuilderChatClientExtensionsTests.cs (2)
206builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient", "testdeployment1").Use(TestMiddleware, null); 210builder.AddOpenAIClient("openai").AddChatClient("testdeployment1").Use(TestMiddleware, null);
Microsoft.Extensions.AI.Tests (4)
ChatCompletion\UseDelegateChatClientTests.cs (4)
24Assert.Throws<ArgumentNullException>("completeFunc", () => builder.Use(null!, null!)); 104.Use(async (chatMessages, options, innerClient, cancellationToken) => 146.Use(null, (chatMessages, options, innerClient, cancellationToken) => 206.Use(