AspireConfigurableOpenAIExtensions
Classstaticnet10.0
Registers OpenAI clients with endpoint and authentication selection based on connection configuration.
namespace Microsoft.Extensions.Hosting;
public static class AspireConfigurableOpenAIExtensions{ // ...}Methods2
Section titled MethodsAspireOpenAIClientBuilder Registers a keyed
OpenAIClient singleton, selecting OpenAI-compatible, Azure account, or Foundry project registration from the connection string. AspireOpenAIClientBuilder Registers an
OpenAIClient singleton, selecting OpenAI-compatible, Azure account, or Foundry project registration from the connection string.