GoogleAITextEmbeddingGenerationService Constructor
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.
Initializes a new instance of the GoogleAITextEmbeddingGenerationService class.
public GoogleAITextEmbeddingGenerationService (string modelId, string apiKey, Microsoft.SemanticKernel.Connectors.Google.GoogleAIVersion apiVersion = Microsoft.SemanticKernel.Connectors.Google.GoogleAIVersion.V1_Beta, System.Net.Http.HttpClient? httpClient = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.Google.GoogleAITextEmbeddingGenerationService : string * string * Microsoft.SemanticKernel.Connectors.Google.GoogleAIVersion * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.Google.GoogleAITextEmbeddingGenerationService
Public Sub New (modelId As String, apiKey As String, Optional apiVersion As GoogleAIVersion = Microsoft.SemanticKernel.Connectors.Google.GoogleAIVersion.V1_Beta, Optional httpClient As HttpClient = Nothing, Optional loggerFactory As ILoggerFactory = Nothing)
Parameters
- modelId
- String
The model identifier.
- apiKey
- String
The API key for authentication.
- apiVersion
- GoogleAIVersion
Version of the Google API
- httpClient
- HttpClient
The optional HTTP client.
- loggerFactory
- ILoggerFactory
Optional logger factory to be used for logging.