次の方法で共有


HuggingFaceImageToTextService Constructors

Definition

Overloads

HuggingFaceImageToTextService(Uri, String, HttpClient, ILoggerFactory)

Initializes a new instance of the HuggingFaceImageToTextService class.

HuggingFaceImageToTextService(String, Uri, String, HttpClient, ILoggerFactory)

Initializes a new instance of the HuggingFaceImageToTextService class.

HuggingFaceImageToTextService(Uri, String, HttpClient, ILoggerFactory)

Initializes a new instance of the HuggingFaceImageToTextService class.

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

Parameters

endpoint
Uri

The endpoint uri including the port where HuggingFace server is hosted

apiKey
String

Optional API key for accessing the HuggingFace service.

httpClient
HttpClient

Optional HTTP client to be used for communication with the HuggingFace API.

loggerFactory
ILoggerFactory

Optional logger factory to be used for logging.

Applies to

HuggingFaceImageToTextService(String, Uri, String, HttpClient, ILoggerFactory)

Initializes a new instance of the HuggingFaceImageToTextService class.

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

Parameters

model
String

The HuggingFace model for image-to-text conversion.

endpoint
Uri

The endpoint uri including the port where HuggingFace server is hosted

apiKey
String

Optional API key for accessing the HuggingFace service.

httpClient
HttpClient

Optional HTTP client to be used for communication with the HuggingFace API.

loggerFactory
ILoggerFactory

Optional logger factory to be used for logging.

Applies to