37 references to AddAzureOpenAIClient
Aspire.Azure.AI.OpenAI (1)
AspireConfigurableOpenAIExtensions.cs (1)
43builder.AddAzureOpenAIClient(connectionName);
Aspire.Azure.AI.OpenAI.Tests (35)
AspireAzureAIOpenAIExtensionsTests.cs (6)
40builder.AddAzureOpenAIClient("openai"); 71builder.AddAzureOpenAIClient("openai"); 97builder.AddAzureOpenAIClient("openai", settings => { settings.Endpoint = uri; settings.Key = key; }); 120builder.AddAzureOpenAIClient("openai"); 138builder.AddAzureOpenAIClient("openai1"); 178builder.AddAzureOpenAIClient("openai", configureClientBuilder: BuildConfiguration);
AspireAzureOpenAIClientBuilderChatClientExtensionsTests.cs (14)
27builder.AddAzureOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 31builder.AddAzureOpenAIClient("openai").AddChatClient(); 57builder.AddAzureOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 61builder.AddAzureOpenAIClient("openai").AddChatClient(); 85builder.AddAzureOpenAIClient("openai").AddKeyedChatClient("openai_chatclient", "testdeployment1"); 89builder.AddAzureOpenAIClient("openai").AddChatClient("testdeployment1"); 113builder.AddAzureOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 117builder.AddAzureOpenAIClient("openai").AddChatClient(); 144builder.AddAzureOpenAIClient("openai").AddKeyedChatClient("openai_chatclient"); 148builder.AddAzureOpenAIClient("openai").AddChatClient(); 178builder.AddAzureOpenAIClient("openai").AddKeyedChatClient("openai_chatclient", "testdeployment1"); 182builder.AddAzureOpenAIClient("openai").AddChatClient("testdeployment1"); 205builder.AddAzureOpenAIClient("openai").AddKeyedChatClient("openai_chatclient", "testdeployment1").Use(TestMiddleware, null); 209builder.AddAzureOpenAIClient("openai").AddChatClient("testdeployment1").Use(TestMiddleware, null);
AspireAzureOpenAIClientBuilderEmbeddingGeneratorExtensionsTests.cs (14)
27builder.AddAzureOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator"); 31builder.AddAzureOpenAIClient("openai").AddEmbeddingGenerator(); 57builder.AddAzureOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator"); 61builder.AddAzureOpenAIClient("openai").AddEmbeddingGenerator(); 85builder.AddAzureOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator", "testdeployment1"); 89builder.AddAzureOpenAIClient("openai").AddEmbeddingGenerator("testdeployment1"); 113builder.AddAzureOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator"); 117builder.AddAzureOpenAIClient("openai").AddEmbeddingGenerator(); 144builder.AddAzureOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator"); 148builder.AddAzureOpenAIClient("openai").AddEmbeddingGenerator(); 178builder.AddAzureOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator", "testdeployment1"); 182builder.AddAzureOpenAIClient("openai").AddEmbeddingGenerator("testdeployment1"); 205builder.AddAzureOpenAIClient("openai").AddKeyedEmbeddingGenerator("openai_embeddinggenerator", "testdeployment1").Use(TestMiddleware); 209builder.AddAzureOpenAIClient("openai").AddEmbeddingGenerator("testdeployment1").Use(TestMiddleware);
ConformanceTests.cs (1)
67builder.AddAzureOpenAIClient("openai", ConfigureCredentials);
OpenAIEndToEnd.WebStory (1)
Program.cs (1)
13builder.AddAzureOpenAIClient("openai").AddChatClient(openAiDeploymentName);