Partager via


AzureOpenAITextToImageService Constructors

Definition

Overloads

AzureOpenAITextToImageService(String, AzureOpenAIClient, String, ILoggerFactory)

Initializes a new instance of the AzureOpenAITextToImageService class.

AzureOpenAITextToImageService(String, String, TokenCredential, String, HttpClient, ILoggerFactory, String)

Initializes a new instance of the AzureOpenAITextToImageService class.

AzureOpenAITextToImageService(String, String, String, String, HttpClient, ILoggerFactory, String)

Initializes a new instance of the AzureOpenAITextToImageService class.

AzureOpenAITextToImageService(String, AzureOpenAIClient, String, ILoggerFactory)

Initializes a new instance of the AzureOpenAITextToImageService class.

public AzureOpenAITextToImageService (string deploymentName, Azure.AI.OpenAI.AzureOpenAIClient azureOpenAIClient, string? modelId, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAITextToImageService : string * Azure.AI.OpenAI.AzureOpenAIClient * string * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAITextToImageService
Public Sub New (deploymentName As String, azureOpenAIClient As AzureOpenAIClient, modelId As String, 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

AzureOpenAITextToImageService(String, String, TokenCredential, String, HttpClient, ILoggerFactory, String)

Initializes a new instance of the AzureOpenAITextToImageService class.

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

Parameters

credential
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.

apiVersion
String

Azure OpenAI service API version, see https://learn.microsoft.com/azure/cognitive-services/openai/quickstart

Applies to

AzureOpenAITextToImageService(String, String, String, String, HttpClient, ILoggerFactory, String)

Initializes a new instance of the AzureOpenAITextToImageService class.

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

Parameters

httpClient
HttpClient

Custom HttpClient for HTTP requests.

loggerFactory
ILoggerFactory

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

apiVersion
String

Azure OpenAI service API version, see https://learn.microsoft.com/azure/cognitive-services/openai/quickstart

Applies to