次の方法で共有


MistralAITextEmbeddingGenerationService Constructor

Definition

Initializes a new instance of the MistralAITextEmbeddingGenerationService class.

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

Parameters

modelId
String

The Mistral modelId for the text generation service.

apiKey
String

API key for accessing the MistralAI service.

endpoint
Uri

Optional uri endpoint including the port where MistralAI server is hosted. Default is https://api.mistral.ai.

httpClient
HttpClient

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

loggerFactory
ILoggerFactory

Optional logger factory to be used for logging.

Applies to