1 write to Key
Aspire.Azure.AI.Inference (1)
ChatCompletionsClientSettings.cs (1)
149
Key
= key.ToString();
6 references to Key
Aspire.Azure.AI.Inference (6)
AspireAzureAIInferenceExtensions.cs (6)
148
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.");
155
if (!string.IsNullOrEmpty(settings.
Key
))
157
var credential = new AzureKeyCredential(settings.
Key
);
401
throw 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.");
408
if (!string.IsNullOrEmpty(settings.
Key
))
410
var credential = new AzureKeyCredential(settings.
Key
);