23 references to ChatCompletionsClientSettings
Aspire.Azure.AI.Inference (17)
AspireAzureAIInferenceExtensions.cs (16)
31/// <param name="configureSettings">An optional callback to configure the <see cref="ChatCompletionsClientSettings"/>.</param> 46Action<ChatCompletionsClientSettings>? configureSettings = null, 52var settings = new ChatCompletionsClientServiceComponent().AddClient( 68/// <param name="configureSettings">An optional callback to configure the <see cref="ChatCompletionsClientSettings"/>.</param> 83Action<ChatCompletionsClientSettings>? configureSettings = null, 89var settings = new ChatCompletionsClientServiceComponent().AddClient( 100private sealed class ChatCompletionsClientServiceComponent : AzureComponent<ChatCompletionsClientSettings, ChatCompletionsClient, AzureAIInferenceClientOptions> 104ChatCompletionsClientSettings settings, 112throw new InvalidOperationException($"A ChatCompletionsClient could not be configured. Ensure valid connection information was provided in 'ConnectionStrings:{connectionName}' or specify a '{nameof(ChatCompletionsClientSettings.Endpoint)}' and optionally a '{nameof(ChatCompletionsClientSettings.Key)}' in the '{configurationSectionName}' configuration section."); 137protected override void BindSettingsToConfiguration(ChatCompletionsClientSettings settings, IConfiguration configuration) 140protected override IHealthCheck CreateHealthCheck(ChatCompletionsClient client, ChatCompletionsClientSettings settings) 143protected override bool GetHealthCheckEnabled(ChatCompletionsClientSettings settings) 146protected override bool GetMetricsEnabled(ChatCompletionsClientSettings settings) 149protected override TokenCredential? GetTokenCredential(ChatCompletionsClientSettings settings) 152protected override bool GetTracingEnabled(ChatCompletionsClientSettings settings)
AssemblyInfo.cs (1)
8[assembly: ConfigurationSchema("Aspire:Azure:AI:Inference", typeof(ChatCompletionsClientSettings))]
Aspire.Azure.AI.Inference.Tests (6)
ConformanceTests.cs (6)
12public class ConformanceTests : ConformanceTests<ChatCompletionsClient, ChatCompletionsClientSettings> 48protected override void RegisterComponent(HostApplicationBuilder builder, Action<ChatCompletionsClientSettings>? configure = null, string? key = null) 59void ConfigureCredentials(ChatCompletionsClientSettings settings) 70protected override void SetHealthCheck(ChatCompletionsClientSettings options, bool enabled) 73protected override void SetMetrics(ChatCompletionsClientSettings options, bool enabled) 76protected override void SetTracing(ChatCompletionsClientSettings options, bool enabled)