20 references to AddKeyedChatClient
Aspire.Azure.AI.OpenAI.Tests (9)
AspireAzureOpenAIClientBuilderChatClientExtensionsTests.cs (7)
27builder.AddAzureOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 57builder.AddAzureOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 85builder.AddAzureOpenAIClient("openai").AddKeyedChatClient("openai_chatclient", "testdeployment1"); 113builder.AddAzureOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 144builder.AddAzureOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 178builder.AddAzureOpenAIClient("openai").AddKeyedChatClient("openai_chatclient", "testdeployment1"); 205builder.AddAzureOpenAIClient("openai").AddKeyedChatClient("openai_chatclient", "testdeployment1").Use(TestMiddleware, null);
AspireConfigurableOpenAIExtensionsTests.cs (1)
231? builder.AddKeyedOpenAIClientFromConfiguration("openai").AddKeyedChatClient("chat")
ConformanceTests.cs (1)
73builder.AddKeyedAzureOpenAIClient(key, ConfigureCredentials).AddKeyedChatClient(key);
Aspire.OpenAI.Tests (11)
AspireOpenAIClientBuilderChatClientExtensionsTests.cs (8)
30builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 60builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 88builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient", "testdeployment1"); 116builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 147builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 181builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient", "testdeployment1"); 208builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient", "testdeployment1").Use(TestMiddleware, null); 241builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient", "testdeployment1").Use(TestMiddleware, null);
ConformanceTests.cs (1)
64builder.AddKeyedOpenAIClient(key, configure).AddKeyedChatClient(key);
OpenAIPublicApiTests.cs (2)
62var action = () => builder.AddKeyedChatClient(serviceKey); 81var action = () => builder.AddKeyedChatClient(serviceKey);