Condividi tramite


AzureAIInferenceChatCompletionService Constructors

Definition

Overloads

AzureAIInferenceChatCompletionService(String, ChatCompletionsClient, ILoggerFactory)

Initializes a new instance of the AzureAIInferenceChatCompletionService class providing your own ChatCompletionsClient instance.

AzureAIInferenceChatCompletionService(String, TokenCredential, Uri, HttpClient, ILoggerFactory)

Initializes a new instance of the AzureAIInferenceChatCompletionService class.

AzureAIInferenceChatCompletionService(String, String, Uri, HttpClient, ILoggerFactory)

Initializes a new instance of the AzureAIInferenceChatCompletionService class.

AzureAIInferenceChatCompletionService(String, ChatCompletionsClient, ILoggerFactory)

Initializes a new instance of the AzureAIInferenceChatCompletionService class providing your own ChatCompletionsClient instance.

public AzureAIInferenceChatCompletionService (string? modelId, Azure.AI.Inference.ChatCompletionsClient chatClient, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.AzureAIInference.AzureAIInferenceChatCompletionService : string * Azure.AI.Inference.ChatCompletionsClient * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.AzureAIInference.AzureAIInferenceChatCompletionService
Public Sub New (modelId As String, chatClient As ChatCompletionsClient, Optional loggerFactory As ILoggerFactory = Nothing)

Parameters

modelId
String

Target Model Id for endpoints supporting more than one model

chatClient
ChatCompletionsClient

Breaking glass ChatCompletionsClient for HTTP requests.

loggerFactory
ILoggerFactory

The ILoggerFactory to use for logging. If null, no logging will be performed.

Applies to

AzureAIInferenceChatCompletionService(String, TokenCredential, Uri, HttpClient, ILoggerFactory)

Initializes a new instance of the AzureAIInferenceChatCompletionService class.

public AzureAIInferenceChatCompletionService (string? modelId, Azure.Core.TokenCredential credential, Uri? endpoint = default, System.Net.Http.HttpClient? httpClient = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.AzureAIInference.AzureAIInferenceChatCompletionService : string * Azure.Core.TokenCredential * Uri * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.AzureAIInference.AzureAIInferenceChatCompletionService
Public Sub New (modelId As String, credential As TokenCredential, Optional endpoint As Uri = Nothing, Optional httpClient As HttpClient = Nothing, Optional loggerFactory As ILoggerFactory = Nothing)

Parameters

modelId
String

Target Model Id for endpoints supporting more than one model

credential
TokenCredential

Token credential, e.g. DefaultAzureCredential, ManagedIdentityCredential, EnvironmentCredential, etc.

endpoint
Uri

Endpoint / Target URI

httpClient
HttpClient

Custom HttpClient for HTTP requests.

loggerFactory
ILoggerFactory

The ILoggerFactory to use for logging. If null, no logging will be performed.

Applies to

AzureAIInferenceChatCompletionService(String, String, Uri, HttpClient, ILoggerFactory)

Initializes a new instance of the AzureAIInferenceChatCompletionService class.

public AzureAIInferenceChatCompletionService (string? modelId = default, string? apiKey = default, Uri? endpoint = default, System.Net.Http.HttpClient? httpClient = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.AzureAIInference.AzureAIInferenceChatCompletionService : string * string * Uri * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.AzureAIInference.AzureAIInferenceChatCompletionService
Public Sub New (Optional modelId As String = Nothing, Optional apiKey As String = Nothing, Optional endpoint As Uri = Nothing, Optional httpClient As HttpClient = Nothing, Optional loggerFactory As ILoggerFactory = Nothing)

Parameters

modelId
String

Target Model Id for endpoints supporting more than one model

apiKey
String

API Key

endpoint
Uri

Endpoint / Target URI

httpClient
HttpClient

Custom HttpClient for HTTP requests.

loggerFactory
ILoggerFactory

The ILoggerFactory to use for logging. If null, no logging will be performed.

Applies to