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