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