1 write to Key
Aspire.Azure.AI.Inference (1)
ChatCompletionsClientSettings.cs (1)
118
Key
= key.ToString();
4 references to Key
Aspire.Azure.AI.Inference (4)
AspireAzureAIInferenceExtensions.cs (3)
112
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.");
117
if (!string.IsNullOrEmpty(settings.
Key
))
119
var credential = new AzureKeyCredential(settings.
Key
);
ChatCompletionsClientSettings.cs (1)
116
if (connectionBuilder.TryGetValue(nameof(
Key
), out var key) && !string.IsNullOrWhiteSpace(key.ToString()))