1 write to Endpoint
Aspire.Azure.AI.Inference (1)
ChatCompletionsClientSettings.cs (1)
113
Endpoint
= serviceUri;
6 references to Endpoint
Aspire.Azure.AI.Inference (6)
AspireAzureAIInferenceExtensions.cs (4)
110
if (settings.
Endpoint
is null)
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.");
120
return new ChatCompletionsClient(settings.
Endpoint
, credential, options);
124
return new ChatCompletionsClient(settings.
Endpoint
, settings.TokenCredential ?? new DefaultAzureCredential(), options);
ChatCompletionsClientSettings.cs (2)
22
/// If <see cref="ConnectionString"/> is set, it overrides <see cref="
Endpoint
"/>, <see cref="DeploymentId"/> and <see cref="Credential"/>.
111
if (connectionBuilder.TryGetValue(nameof(
Endpoint
), out var endpoint) && Uri.TryCreate(endpoint.ToString(), UriKind.Absolute, out var serviceUri))