23 references to ChatCompletionsClientSettings
Aspire.Azure.AI.Inference (17)
AspireAzureAIInferenceExtensions.cs (16)
33/// <param name="configureSettings">An optional callback to configure the <see cref="ChatCompletionsClientSettings"/>.</param> 48Action<ChatCompletionsClientSettings>? configureSettings = null, 54var settings = new ChatCompletionsClientServiceComponent().AddClient( 70/// <param name="configureSettings">An optional callback to configure the <see cref="ChatCompletionsClientSettings"/>.</param> 85Action<ChatCompletionsClientSettings>? configureSettings = null, 91var settings = new ChatCompletionsClientServiceComponent().AddClient( 102private sealed class ChatCompletionsClientServiceComponent : AzureComponent<ChatCompletionsClientSettings, ChatCompletionsClient, AzureAIInferenceClientOptions> 112ChatCompletionsClientSettings settings, 120throw 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."); 157protected override void BindSettingsToConfiguration(ChatCompletionsClientSettings settings, IConfiguration configuration) 160protected override IHealthCheck CreateHealthCheck(ChatCompletionsClient client, ChatCompletionsClientSettings settings) 163protected override bool GetHealthCheckEnabled(ChatCompletionsClientSettings settings) 166protected override bool GetMetricsEnabled(ChatCompletionsClientSettings settings) 169protected override TokenCredential? GetTokenCredential(ChatCompletionsClientSettings settings) 172protected 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)
13public class ConformanceTests : ConformanceTests<IChatClient, ChatCompletionsClientSettings> 50protected override void RegisterComponent(HostApplicationBuilder builder, Action<ChatCompletionsClientSettings>? configure = null, string? key = null) 61void ConfigureCredentials(ChatCompletionsClientSettings settings) 72protected override void SetHealthCheck(ChatCompletionsClientSettings options, bool enabled) 75protected override void SetMetrics(ChatCompletionsClientSettings options, bool enabled) 78protected override void SetTracing(ChatCompletionsClientSettings options, bool enabled)