Share via


EmbeddingsClient Constructors

Definition

Overloads

EmbeddingsClient()

Initializes a new instance of EmbeddingsClient for mocking.

EmbeddingsClient(Uri, AzureKeyCredential)

Initializes a new instance of EmbeddingsClient.

EmbeddingsClient(Uri, TokenCredential)

Initializes a new instance of EmbeddingsClient.

EmbeddingsClient(Uri, AzureKeyCredential, AzureAIInferenceClientOptions)

Initializes a new instance of EmbeddingsClient.

EmbeddingsClient(Uri, TokenCredential, AzureAIInferenceClientOptions)

Initializes a new instance of EmbeddingsClient.

EmbeddingsClient()

Source:
EmbeddingsClient.cs

Initializes a new instance of EmbeddingsClient for mocking.

protected EmbeddingsClient ();
Protected Sub New ()

Applies to

EmbeddingsClient(Uri, AzureKeyCredential)

Source:
EmbeddingsClient.cs

Initializes a new instance of EmbeddingsClient.

public EmbeddingsClient (Uri endpoint, Azure.AzureKeyCredential credential);
new Azure.AI.Inference.EmbeddingsClient : Uri * Azure.AzureKeyCredential -> Azure.AI.Inference.EmbeddingsClient
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

EmbeddingsClient(Uri, TokenCredential)

Source:
EmbeddingsClient.cs

Initializes a new instance of EmbeddingsClient.

public EmbeddingsClient (Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.AI.Inference.EmbeddingsClient : Uri * Azure.Core.TokenCredential -> Azure.AI.Inference.EmbeddingsClient
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

EmbeddingsClient(Uri, AzureKeyCredential, AzureAIInferenceClientOptions)

Source:
EmbeddingsClient.cs

Initializes a new instance of EmbeddingsClient.

public EmbeddingsClient (Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.Inference.AzureAIInferenceClientOptions options);
new Azure.AI.Inference.EmbeddingsClient : Uri * Azure.AzureKeyCredential * Azure.AI.Inference.AzureAIInferenceClientOptions -> Azure.AI.Inference.EmbeddingsClient
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

EmbeddingsClient(Uri, TokenCredential, AzureAIInferenceClientOptions)

Source:
EmbeddingsClient.cs

Initializes a new instance of EmbeddingsClient.

public EmbeddingsClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.Inference.AzureAIInferenceClientOptions options);
new Azure.AI.Inference.EmbeddingsClient : Uri * Azure.Core.TokenCredential * Azure.AI.Inference.AzureAIInferenceClientOptions -> Azure.AI.Inference.EmbeddingsClient
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