38 references to AddOpenAIClient
Aspire.Azure.AI.OpenAI (1)
AspireConfigurableOpenAIExtensions.cs (1)
47builder.AddOpenAIClient(connectionName);
Aspire.OpenAI.Tests (37)
AspireOpenAIClientBuilderChatClientExtensionsTests.cs (14)
28builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 32builder.AddOpenAIClient("openai").AddChatClient(); 58builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 62builder.AddOpenAIClient("openai").AddChatClient(); 86builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient", "testdeployment1"); 90builder.AddOpenAIClient("openai").AddChatClient("testdeployment1"); 114builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 118builder.AddOpenAIClient("openai").AddChatClient(); 145builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 149builder.AddOpenAIClient("openai").AddChatClient(); 179builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient", "testdeployment1"); 183builder.AddOpenAIClient("openai").AddChatClient("testdeployment1"); 206builder.AddOpenAIClient("openai").AddKeyedChatClient("openai_chatclient", "testdeployment1").Use(TestMiddleware, null); 210builder.AddOpenAIClient("openai").AddChatClient("testdeployment1").Use(TestMiddleware, null);
AspireOpenAIClientBuilderEmbeddingGeneratorExtensionsTests.cs (14)
28builder.AddOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator"); 32builder.AddOpenAIClient("openai").AddEmbeddingGenerator(); 58builder.AddOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator"); 62builder.AddOpenAIClient("openai").AddEmbeddingGenerator(); 86builder.AddOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator", "testdeployment1"); 90builder.AddOpenAIClient("openai").AddEmbeddingGenerator("testdeployment1"); 114builder.AddOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator"); 118builder.AddOpenAIClient("openai").AddEmbeddingGenerator(); 145builder.AddOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator"); 149builder.AddOpenAIClient("openai").AddEmbeddingGenerator(); 179builder.AddOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator", "testdeployment1"); 183builder.AddOpenAIClient("openai").AddEmbeddingGenerator("testdeployment1"); 206builder.AddOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator", "testdeployment1").Use(TestMiddleware); 210builder.AddOpenAIClient("openai").AddEmbeddingGenerator("testdeployment1").Use(TestMiddleware);
AspireOpenAIExtensionsTests.cs (8)
33builder.AddOpenAIClient("openai"); 60builder.AddOpenAIClient("openai", settings => { settings.Endpoint = uri; settings.Key = key; }); 81builder.AddOpenAIClient("openai"); 99builder.AddOpenAIClient("openai"); 121builder.AddOpenAIClient("openai1"); 147builder.AddOpenAIClient("openai", settings => 167builder.AddOpenAIClient("openai", configureOptions: options => 190builder.AddOpenAIClient("openai");
ConformanceTests.cs (1)
59builder.AddOpenAIClient("openai", configure);