Partager via


GoogleAITextEmbeddingGenerationService Constructor

Definition

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.

Applies to