HuggingFaceImageToTextService Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.