ProjectOpenAIClient Constructors

Definition

Overloads

ProjectOpenAIClient()

Source:
ProjectOpenAIClient.cs
Source:
ProjectOpenAIClient.cs

Initializes a new instance of ProjectOpenAIClient for mocking.

protected ProjectOpenAIClient();
Protected Sub New ()

Applies to

ProjectOpenAIClient(ProjectOpenAIClientSettings)

Source:
ProjectOpenAIClient.cs
Source:
ProjectOpenAIClient.cs

Initializes a new instance of ProjectOpenAIClient from a ProjectOpenAIClientSettings.

public ProjectOpenAIClient(Azure.AI.Extensions.OpenAI.ProjectOpenAIClientSettings settings);
new Azure.AI.Extensions.OpenAI.ProjectOpenAIClient : Azure.AI.Extensions.OpenAI.ProjectOpenAIClientSettings -> Azure.AI.Extensions.OpenAI.ProjectOpenAIClient
Public Sub New (settings As ProjectOpenAIClientSettings)

Parameters

settings
ProjectOpenAIClientSettings

The settings for ProjectOpenAIClient.

Applies to

ProjectOpenAIClient(AuthenticationPolicy, ProjectOpenAIClientOptions)

Source:
ProjectOpenAIClient.cs
Source:
ProjectOpenAIClient.cs

Initializes a new instance of ProjectOpenAIClient.

public ProjectOpenAIClient(System.ClientModel.Primitives.AuthenticationPolicy authenticationPolicy, Azure.AI.Extensions.OpenAI.ProjectOpenAIClientOptions options);
new Azure.AI.Extensions.OpenAI.ProjectOpenAIClient : System.ClientModel.Primitives.AuthenticationPolicy * Azure.AI.Extensions.OpenAI.ProjectOpenAIClientOptions -> Azure.AI.Extensions.OpenAI.ProjectOpenAIClient
Public Sub New (authenticationPolicy As AuthenticationPolicy, options As ProjectOpenAIClientOptions)

Parameters

authenticationPolicy
AuthenticationPolicy

The authentication policy used by the client pipeline.

options
ProjectOpenAIClientOptions

The options used to configure the client.

Applies to

ProjectOpenAIClient(ClientPipeline, ProjectOpenAIClientOptions)

Source:
ProjectOpenAIClient.cs
Source:
ProjectOpenAIClient.cs

Initializes a new instance of ProjectOpenAIClient.

protected internal ProjectOpenAIClient(System.ClientModel.Primitives.ClientPipeline pipeline, Azure.AI.Extensions.OpenAI.ProjectOpenAIClientOptions options);
new Azure.AI.Extensions.OpenAI.ProjectOpenAIClient : System.ClientModel.Primitives.ClientPipeline * Azure.AI.Extensions.OpenAI.ProjectOpenAIClientOptions -> Azure.AI.Extensions.OpenAI.ProjectOpenAIClient
Protected Friend Sub New (pipeline As ClientPipeline, options As ProjectOpenAIClientOptions)

Parameters

pipeline
ClientPipeline

The client pipeline used to send requests.

options
ProjectOpenAIClientOptions

The options used to configure the client.

Applies to

ProjectOpenAIClient(Uri, AuthenticationTokenProvider, ProjectOpenAIClientOptions)

Source:
ProjectOpenAIClient.cs
Source:
ProjectOpenAIClient.cs

Initializes a new instance of ProjectOpenAIClient.

public ProjectOpenAIClient(Uri projectEndpoint, System.ClientModel.AuthenticationTokenProvider tokenProvider, Azure.AI.Extensions.OpenAI.ProjectOpenAIClientOptions options = default);
new Azure.AI.Extensions.OpenAI.ProjectOpenAIClient : Uri * System.ClientModel.AuthenticationTokenProvider * Azure.AI.Extensions.OpenAI.ProjectOpenAIClientOptions -> Azure.AI.Extensions.OpenAI.ProjectOpenAIClient
Public Sub New (projectEndpoint As Uri, tokenProvider As AuthenticationTokenProvider, Optional options As ProjectOpenAIClientOptions = Nothing)

Parameters

projectEndpoint
Uri

The Azure AI project endpoint.

tokenProvider
AuthenticationTokenProvider

The token provider used to authenticate requests.

options
ProjectOpenAIClientOptions

The options used to configure the client.

Applies to