39 references to ChatCompletionsClientSettings
Aspire.Azure.AI.Inference (33)
AspireAzureAIInferenceExtensions.cs (32)
33/// <param name="configureSettings">An optional callback to configure the <see cref="ChatCompletionsClientSettings"/>.</param>
62Action<ChatCompletionsClientSettings>? configureSettings = null,
68var settings = new ChatCompletionsClientServiceComponent().AddClient(
84/// <param name="configureSettings">An optional callback to configure the <see cref="ChatCompletionsClientSettings"/>.</param>
113Action<ChatCompletionsClientSettings>? configureSettings = null,
119var settings = new ChatCompletionsClientServiceComponent().AddClient(
130private sealed class ChatCompletionsClientServiceComponent : AzureComponent<ChatCompletionsClientSettings, ChatCompletionsClient, AzureAIInferenceClientOptions>
140ChatCompletionsClientSettings settings,
148throw 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.");
185protected override void BindSettingsToConfiguration(ChatCompletionsClientSettings settings, IConfiguration configuration)
188protected override IHealthCheck CreateHealthCheck(ChatCompletionsClient client, ChatCompletionsClientSettings settings)
191protected override bool GetHealthCheckEnabled(ChatCompletionsClientSettings settings)
194protected override bool GetMetricsEnabled(ChatCompletionsClientSettings settings)
197protected override TokenCredential? GetTokenCredential(ChatCompletionsClientSettings settings)
200protected override bool GetTracingEnabled(ChatCompletionsClientSettings settings)
289/// <param name="configureSettings">An optional callback to configure the <see cref="ChatCompletionsClientSettings"/>.</param>
318Action<ChatCompletionsClientSettings>? configureSettings = null,
324var settings = new EmbeddingsClientServiceComponent().AddClient(
340/// <param name="configureSettings">An optional callback to configure the <see cref="ChatCompletionsClientSettings"/>.</param>
369Action<ChatCompletionsClientSettings>? configureSettings = null,
375var settings = new EmbeddingsClientServiceComponent().AddClient(
386private sealed class EmbeddingsClientServiceComponent : AzureComponent<ChatCompletionsClientSettings, EmbeddingsClient, AzureAIInferenceClientOptions>
394protected override IAzureClientBuilder<EmbeddingsClient, AzureAIInferenceClientOptions> AddClient(AzureClientFactoryBuilder azureFactoryBuilder, ChatCompletionsClientSettings settings,
401throw 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.");
438protected override void BindSettingsToConfiguration(ChatCompletionsClientSettings settings, IConfiguration configuration)
441protected override IHealthCheck CreateHealthCheck(EmbeddingsClient client, ChatCompletionsClientSettings settings)
444protected override bool GetHealthCheckEnabled(ChatCompletionsClientSettings settings)
447protected override bool GetMetricsEnabled(ChatCompletionsClientSettings settings)
450protected override TokenCredential? GetTokenCredential(ChatCompletionsClientSettings settings)
453protected override bool GetTracingEnabled(ChatCompletionsClientSettings settings)
Aspire.Azure.AI.Inference.Tests (6)