AspireAzureOpenAIExtensions
Classstaticnet10.0
Provides extension methods for registering
OpenAI.AzureOpenAIClient as a singleton in the services provided by the Hosting.IHostApplicationBuilder. namespace Microsoft.Extensions.Hosting;
public static class AspireAzureOpenAIExtensions{ // ...}Methods2
Section titled Methods Registers
OpenAI.AzureOpenAIClient as a singleton in the services provided by the builder. Additionally, registers the OpenAI.AzureOpenAIClient as an OpenAIClient service. Registers
OpenAI.AzureOpenAIClient as a singleton for given name in the services provided by the builder. Additionally, registers the OpenAI.AzureOpenAIClient as an OpenAIClient service.