39 references to ChatCompletionsClientSettings
Aspire.Azure.AI.Inference (33)
AspireAzureAIInferenceExtensions.cs (32)
34/// <param name="configureSettings">An optional callback to configure the <see cref="ChatCompletionsClientSettings"/>.</param>
63Action<ChatCompletionsClientSettings>? configureSettings = null,
69var settings = new ChatCompletionsClientServiceComponent().AddClient(
85/// <param name="configureSettings">An optional callback to configure the <see cref="ChatCompletionsClientSettings"/>.</param>
114Action<ChatCompletionsClientSettings>? configureSettings = null,
120var settings = new ChatCompletionsClientServiceComponent().AddClient(
131private sealed class ChatCompletionsClientServiceComponent : AzureComponent<ChatCompletionsClientSettings, ChatCompletionsClient, AzureAIInferenceClientOptions>
141ChatCompletionsClientSettings settings,
149throw 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.");
186protected override void BindSettingsToConfiguration(ChatCompletionsClientSettings settings, IConfiguration configuration)
189protected override IHealthCheck CreateHealthCheck(ChatCompletionsClient client, ChatCompletionsClientSettings settings)
192protected override bool GetHealthCheckEnabled(ChatCompletionsClientSettings settings)
195protected override bool GetMetricsEnabled(ChatCompletionsClientSettings settings)
198protected override TokenCredential? GetTokenCredential(ChatCompletionsClientSettings settings)
201protected override bool GetTracingEnabled(ChatCompletionsClientSettings settings)
290/// <param name="configureSettings">An optional callback to configure the <see cref="ChatCompletionsClientSettings"/>.</param>
319Action<ChatCompletionsClientSettings>? configureSettings = null,
325var settings = new EmbeddingsClientServiceComponent().AddClient(
341/// <param name="configureSettings">An optional callback to configure the <see cref="ChatCompletionsClientSettings"/>.</param>
370Action<ChatCompletionsClientSettings>? configureSettings = null,
376var settings = new EmbeddingsClientServiceComponent().AddClient(
387private sealed class EmbeddingsClientServiceComponent : AzureComponent<ChatCompletionsClientSettings, EmbeddingsClient, AzureAIInferenceClientOptions>
395protected override IAzureClientBuilder<EmbeddingsClient, AzureAIInferenceClientOptions> AddClient(AzureClientFactoryBuilder azureFactoryBuilder, ChatCompletionsClientSettings settings,
402throw new InvalidOperationException($"A EmbeddingsClient 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.");
439protected override void BindSettingsToConfiguration(ChatCompletionsClientSettings settings, IConfiguration configuration)
442protected override IHealthCheck CreateHealthCheck(EmbeddingsClient client, ChatCompletionsClientSettings settings)
445protected override bool GetHealthCheckEnabled(ChatCompletionsClientSettings settings)
448protected override bool GetMetricsEnabled(ChatCompletionsClientSettings settings)
451protected override TokenCredential? GetTokenCredential(ChatCompletionsClientSettings settings)
454protected override bool GetTracingEnabled(ChatCompletionsClientSettings settings)
Aspire.Azure.AI.Inference.Tests (6)