3 writes to Key
Aspire.OpenAI (1)
OpenAISettings.cs (1)
89
Key
= connectionBuilder[ConnectionStringKey].ToString();
Aspire.OpenAI.Tests (2)
AspireOpenAIExtensionsTests.cs (2)
56
builder.AddKeyedOpenAIClient("openai", settings => { settings.Endpoint = uri; settings.
Key
= key; });
60
builder.AddOpenAIClient("openai", settings => { settings.Endpoint = uri; settings.
Key
= key; });
3 references to Key
Aspire.OpenAI (3)
AspireOpenAIExtensions.cs (3)
125
if (settings.
Key
is not null)
128
return new OpenAIClient(new ApiKeyCredential(settings.
Key
), options);
134
$"specify a {nameof(settings.
Key
)} in the '{configurationSectionName}' configuration section.");