2 instantiations of AzureOpenAISettings
Aspire.Azure.AI.OpenAI.Tests (2)
AzureOpenAISettingsTests.cs (2)
27Assert.Equal(expectedValue, new AzureOpenAISettings().DisableMetrics); 32Assert.Equal(expectedValue, new AzureOpenAISettings().DisableTracing);
23 references to AzureOpenAISettings
Aspire.Azure.AI.OpenAI (17)
AspireAzureOpenAIExtensions.cs (16)
34/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="AzureOpenAISettings"/>. It's invoked after the settings are read from the configuration.</param> 41Action<AzureOpenAISettings>? configureSettings = null, 44var settings = new OpenAIComponent().AddClient(builder, DefaultConfigSectionName, configureSettings, configureClientBuilder, connectionName, serviceKey: null); 59/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="AzureOpenAISettings"/>. It's invoked after the settings are read from the configuration.</param> 66Action<AzureOpenAISettings>? configureSettings = null, 71var settings = new OpenAIComponent().AddClient(builder, DefaultConfigSectionName, configureSettings, configureClientBuilder, connectionName: name, serviceKey: name); 79private sealed class OpenAIComponent : AzureComponent<AzureOpenAISettings, AzureOpenAIClient, AzureOpenAIClientOptions> 86AzureClientFactoryBuilder azureFactoryBuilder, AzureOpenAISettings settings, string connectionName, 93throw new InvalidOperationException($"An OpenAIClient could not be configured. Ensure valid connection information was provided in 'ConnectionStrings:{connectionName}' or specify a '{nameof(AzureOpenAISettings.Endpoint)}' or '{nameof(AzureOpenAISettings.Key)}' in the '{configurationSectionName}' configuration section."); 119protected override void BindSettingsToConfiguration(AzureOpenAISettings settings, IConfiguration config) 124protected override IHealthCheck CreateHealthCheck(AzureOpenAIClient client, AzureOpenAISettings settings) 129protected override bool GetHealthCheckEnabled(AzureOpenAISettings settings) 134protected override TokenCredential? GetTokenCredential(AzureOpenAISettings settings) 137protected override bool GetMetricsEnabled(AzureOpenAISettings settings) 140protected override bool GetTracingEnabled(AzureOpenAISettings settings)
AssemblyInfo.cs (1)
8[assembly: ConfigurationSchema("Aspire:Azure:AI:OpenAI", typeof(AzureOpenAISettings))]
Aspire.Azure.AI.OpenAI.Tests (6)
ConformanceTests.cs (6)
15public class ConformanceTests : ConformanceTests<AzureOpenAIClient, AzureOpenAISettings> 63protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureOpenAISettings>? configure = null, string? key = null) 74void ConfigureCredentials(AzureOpenAISettings settings) 93protected override void SetHealthCheck(AzureOpenAISettings options, bool enabled) 96protected override void SetMetrics(AzureOpenAISettings options, bool enabled) 99protected override void SetTracing(AzureOpenAISettings options, bool enabled)