AspireOpenAIExtensions
Class static net10.0
Provides extension methods for registering
OpenAIClient as a singleton in the services provided by the Hosting.IHostApplicationBuilder. namespace Microsoft.Extensions.Hosting;
public static class AspireOpenAIExtensions{ // ...}Methods2
Section titled MethodsAddKeyedOpenAIClient(IHostApplicationBuilder, string, Action<OpenAISettings>, Action<OpenAIClientOptions>)extension Registers
OpenAIClient as a singleton for given name in the services provided by the builder. AddOpenAIClient(IHostApplicationBuilder, string, Action<OpenAISettings>, Action<OpenAIClientOptions>)extension Registers
OpenAIClient as a singleton in the services provided by the builder.