次の方法で共有


AzureOpenAIChatCompletionService Constructors

Definition

Overloads

AzureOpenAIChatCompletionService(String, AzureOpenAIClient, String, ILoggerFactory)

Initializes a new instance of the AzureOpenAIChatCompletionService class.

AzureOpenAIChatCompletionService(String, String, TokenCredential, String, HttpClient, ILoggerFactory)

Initializes a new instance of the AzureOpenAIChatCompletionService class.

AzureOpenAIChatCompletionService(String, String, String, String, HttpClient, ILoggerFactory)

Initializes a new instance of the AzureOpenAIChatCompletionService class.

AzureOpenAIChatCompletionService(String, AzureOpenAIClient, String, ILoggerFactory)

Initializes a new instance of the AzureOpenAIChatCompletionService class.

public AzureOpenAIChatCompletionService (string deploymentName, Azure.AI.OpenAI.AzureOpenAIClient azureOpenAIClient, string? modelId = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAIChatCompletionService : string * Azure.AI.OpenAI.AzureOpenAIClient * string * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAIChatCompletionService
Public Sub New (deploymentName As String, azureOpenAIClient As AzureOpenAIClient, Optional modelId As String = Nothing, Optional loggerFactory As ILoggerFactory = Nothing)

Parameters

azureOpenAIClient
AzureOpenAIClient

Custom AzureOpenAIClient.

loggerFactory
ILoggerFactory

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

Applies to

AzureOpenAIChatCompletionService(String, String, TokenCredential, String, HttpClient, ILoggerFactory)

Initializes a new instance of the AzureOpenAIChatCompletionService class.

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

Parameters

credentials
TokenCredential

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

httpClient
HttpClient

Custom HttpClient for HTTP requests.

loggerFactory
ILoggerFactory

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

Applies to

AzureOpenAIChatCompletionService(String, String, String, String, HttpClient, ILoggerFactory)

Initializes a new instance of the AzureOpenAIChatCompletionService class.

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

Parameters

httpClient
HttpClient

Custom HttpClient for HTTP requests.

loggerFactory
ILoggerFactory

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

Applies to