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