AspireOpenAIClientBuilder Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Constructs a new instance of AspireOpenAIClientBuilder.
public AspireOpenAIClientBuilder(Microsoft.Extensions.Hosting.IHostApplicationBuilder hostBuilder, string connectionName, string? serviceKey, bool disableTracing);
new Aspire.OpenAI.AspireOpenAIClientBuilder : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * string * bool -> Aspire.OpenAI.AspireOpenAIClientBuilder
Public Sub New (hostBuilder As IHostApplicationBuilder, connectionName As String, serviceKey As String, disableTracing As Boolean)
Parameters
- hostBuilder
- IHostApplicationBuilder
The IHostApplicationBuilder with which services are being registered.
- connectionName
- String
The name used to retrieve the connection string from the ConnectionStrings configuration section.
- serviceKey
- String
The service key used to register the OpenAI.OpenAIClient service, if any.
- disableTracing
- Boolean
A flag to indicate whether tracing should be disabled.