1 reference to TryAddSingleton
Aspire.Azure.AI.OpenAI (1)
AspireAzureOpenAIExtensions.cs (1)
47
builder.Services.
TryAddSingleton
(typeof(OpenAIClient), static provider => provider.GetRequiredService<AzureOpenAIClient>());