AIInferenceClientBuilderExtensions.AddChatCompletionsClient Method

Definition

Overloads

AddChatCompletionsClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Registers a ChatCompletionsClient instance.

AddChatCompletionsClient<TBuilder>(TBuilder, Uri)

Registers a ChatCompletionsClient instance.

AddChatCompletionsClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)

Registers a ChatCompletionsClient instance.

AddChatCompletionsClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Source:
AIInferenceClientBuilderExtensions.cs

Registers a ChatCompletionsClient instance.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Inference.ChatCompletionsClient,Azure.AI.Inference.AzureAIInferenceClientOptions> AddChatCompletionsClient<TBuilder,TConfiguration> (this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<TConfiguration>;
static member AddChatCompletionsClient : 'Builder * 'Configuration -> Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Inference.ChatCompletionsClient, Azure.AI.Inference.AzureAIInferenceClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<'Configuration>)
<Extension()>
Public Function AddChatCompletionsClient(Of TBuilder As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration), TConfiguration As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration)) (builder As TBuilder, configuration As TConfiguration) As IAzureClientBuilder(Of ChatCompletionsClient, AzureAIInferenceClientOptions)

Type Parameters

TBuilder
TConfiguration

Parameters

builder
TBuilder

The builder to register with.

configuration
TConfiguration

The configuration values.

Returns

Applies to

AddChatCompletionsClient<TBuilder>(TBuilder, Uri)

Source:
AIInferenceClientBuilderExtensions.cs

Registers a ChatCompletionsClient instance.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Inference.ChatCompletionsClient,Azure.AI.Inference.AzureAIInferenceClientOptions> AddChatCompletionsClient<TBuilder> (this TBuilder builder, Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential;
static member AddChatCompletionsClient : 'Builder * Uri -> Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Inference.ChatCompletionsClient, Azure.AI.Inference.AzureAIInferenceClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential)
<Extension()>
Public Function AddChatCompletionsClient(Of TBuilder As IAzureClientFactoryBuilderWithCredential) (builder As TBuilder, endpoint As Uri) As IAzureClientBuilder(Of ChatCompletionsClient, AzureAIInferenceClientOptions)

Type Parameters

TBuilder

Parameters

builder
TBuilder

The builder to register with.

endpoint
Uri

Service host.

Returns

Applies to

AddChatCompletionsClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)

Source:
AIInferenceClientBuilderExtensions.cs

Registers a ChatCompletionsClient instance.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Inference.ChatCompletionsClient,Azure.AI.Inference.AzureAIInferenceClientOptions> AddChatCompletionsClient<TBuilder> (this TBuilder builder, Uri endpoint, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddChatCompletionsClient : 'Builder * Uri * Azure.AzureKeyCredential -> Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Inference.ChatCompletionsClient, Azure.AI.Inference.AzureAIInferenceClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddChatCompletionsClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, endpoint As Uri, credential As AzureKeyCredential) As IAzureClientBuilder(Of ChatCompletionsClient, AzureAIInferenceClientOptions)

Type Parameters

TBuilder

Parameters

builder
TBuilder

The builder to register with.

endpoint
Uri

Service host.

credential
AzureKeyCredential

A credential used to authenticate to an Azure Service.

Returns

Applies to