Share via


ChatCompletionsClient Constructors

Definition

Overloads

ChatCompletionsClient()

Initializes a new instance of ChatCompletionsClient for mocking.

ChatCompletionsClient(Uri, AzureKeyCredential)

Initializes a new instance of ChatCompletionsClient.

ChatCompletionsClient(Uri, TokenCredential)

Initializes a new instance of ChatCompletionsClient.

ChatCompletionsClient(Uri, AzureKeyCredential, AzureAIInferenceClientOptions)

Initializes a new instance of ChatCompletionsClient.

ChatCompletionsClient(Uri, TokenCredential, AzureAIInferenceClientOptions)

Initializes a new instance of ChatCompletionsClient.

ChatCompletionsClient()

Source:
ChatCompletionsClient.cs

Initializes a new instance of ChatCompletionsClient for mocking.

protected ChatCompletionsClient ();
Protected Sub New ()

Applies to

ChatCompletionsClient(Uri, AzureKeyCredential)

Source:
ChatCompletionsClient.cs

Initializes a new instance of ChatCompletionsClient.

public ChatCompletionsClient (Uri endpoint, Azure.AzureKeyCredential credential);
new Azure.AI.Inference.ChatCompletionsClient : Uri * Azure.AzureKeyCredential -> Azure.AI.Inference.ChatCompletionsClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential)

Parameters

endpoint
Uri

Service host.

credential
AzureKeyCredential

A credential used to authenticate to an Azure Service.

Exceptions

endpoint or credential is null.

Applies to

ChatCompletionsClient(Uri, TokenCredential)

Source:
ChatCompletionsClient.cs

Initializes a new instance of ChatCompletionsClient.

public ChatCompletionsClient (Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.AI.Inference.ChatCompletionsClient : Uri * Azure.Core.TokenCredential -> Azure.AI.Inference.ChatCompletionsClient
Public Sub New (endpoint As Uri, credential As TokenCredential)

Parameters

endpoint
Uri

Service host.

credential
TokenCredential

A credential used to authenticate to an Azure Service.

Exceptions

endpoint or credential is null.

Applies to

ChatCompletionsClient(Uri, AzureKeyCredential, AzureAIInferenceClientOptions)

Source:
ChatCompletionsClient.cs

Initializes a new instance of ChatCompletionsClient.

public ChatCompletionsClient (Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.Inference.AzureAIInferenceClientOptions options);
new Azure.AI.Inference.ChatCompletionsClient : Uri * Azure.AzureKeyCredential * Azure.AI.Inference.AzureAIInferenceClientOptions -> Azure.AI.Inference.ChatCompletionsClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential, options As AzureAIInferenceClientOptions)

Parameters

endpoint
Uri

The Uri to use.

credential
AzureKeyCredential

A credential used to authenticate to an Azure Service.

options
AzureAIInferenceClientOptions

The options for configuring the client.

Exceptions

endpoint or credential is null.

Applies to

ChatCompletionsClient(Uri, TokenCredential, AzureAIInferenceClientOptions)

Source:
ChatCompletionsClient.cs

Initializes a new instance of ChatCompletionsClient.

public ChatCompletionsClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.Inference.AzureAIInferenceClientOptions options);
new Azure.AI.Inference.ChatCompletionsClient : Uri * Azure.Core.TokenCredential * Azure.AI.Inference.AzureAIInferenceClientOptions -> Azure.AI.Inference.ChatCompletionsClient
Public Sub New (endpoint As Uri, credential As TokenCredential, options As AzureAIInferenceClientOptions)

Parameters

endpoint
Uri

Service host.

credential
TokenCredential

A credential used to authenticate to an Azure Service.

options
AzureAIInferenceClientOptions

The options for configuring the client.

Exceptions

endpoint or credential is null.

Applies to