You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: EssentialCSharp.Chat.Shared/Extensions/ServiceCollectionExtensions.cs
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -21,11 +21,6 @@ public static IServiceCollection AddAzureOpenAIServices(this IServiceCollection
21
21
string.IsNullOrEmpty(aiOptions.ApiKey))
22
22
// Register Azure OpenAI services
23
23
#pragma warning disable SKEXP0010// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
24
-
services.AddAzureOpenAIEmbeddingGenerator(
25
-
aiOptions.VectorGenerationDeploymentName,
26
-
aiOptions.Endpoint,
27
-
aiOptions.ApiKey);
28
-
29
24
services.AddAzureOpenAIChatClient(
30
25
aiOptions.ChatDeploymentName,
31
26
aiOptions.Endpoint,
@@ -42,6 +37,10 @@ public static IServiceCollection AddAzureOpenAIServices(this IServiceCollection
0 commit comments