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