4 writes to Endpoint
Aspire.Azure.AI.OpenAI (2)
AzureOpenAISettings.cs (2)
94
Endpoint
= uri;
105
Endpoint
= serviceUri;
Aspire.Azure.AI.OpenAI.Tests (2)
AspireAzureAIOpenAIExtensionsTests.cs (2)
93
builder.AddKeyedAzureOpenAIClient("openai", settings => { settings.
Endpoint
= uri; settings.Key = key; });
97
builder.AddAzureOpenAIClient("openai", settings => { settings.
Endpoint
= uri; settings.Key = key; });
4 references to Endpoint
Aspire.Azure.AI.OpenAI (4)
AspireAzureOpenAIExtensions.cs (4)
91
if (settings.
Endpoint
is null)
93
throw new InvalidOperationException($"An OpenAIClient could not be configured. Ensure valid connection information was provided in 'ConnectionStrings:{connectionName}' or specify a '{nameof(AzureOpenAISettings.
Endpoint
)}' or '{nameof(AzureOpenAISettings.Key)}' in the '{configurationSectionName}' configuration section.");
102
return new AzureOpenAIClient(settings.
Endpoint
, credential, options);
106
return new AzureOpenAIClient(settings.
Endpoint
, settings.Credential ?? new DefaultAzureCredential(), options);