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);
21 references to AzureOpenAISettings
Aspire.Azure.AI.OpenAI (15)
AspireAzureOpenAIExtensions.cs (14)
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> 40Action<AzureOpenAISettings>? configureSettings = null, 56/// <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> 62Action<AzureOpenAISettings>? configureSettings = null, 73private sealed class OpenAIComponent : AzureComponent<AzureOpenAISettings, AzureOpenAIClient, AzureOpenAIClientOptions> 80AzureClientFactoryBuilder azureFactoryBuilder, AzureOpenAISettings settings, string connectionName, 87throw 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."); 113protected override void BindSettingsToConfiguration(AzureOpenAISettings settings, IConfiguration config) 118protected override IHealthCheck CreateHealthCheck(AzureOpenAIClient client, AzureOpenAISettings settings) 123protected override bool GetHealthCheckEnabled(AzureOpenAISettings settings) 128protected override TokenCredential? GetTokenCredential(AzureOpenAISettings settings) 131protected override bool GetMetricsEnabled(AzureOpenAISettings settings) 134protected 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> 61protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureOpenAISettings>? configure = null, string? key = null) 72void ConfigureCredentials(AzureOpenAISettings settings) 91protected override void SetHealthCheck(AzureOpenAISettings options, bool enabled) 94protected override void SetMetrics(AzureOpenAISettings options, bool enabled) 97protected override void SetTracing(AzureOpenAISettings options, bool enabled)