Partager via


MistralAIChatCompletionService Constructor

Definition

Initializes a new instance of the MistralAIChatCompletionService class.

public MistralAIChatCompletionService (string modelId, string apiKey, Uri? endpoint = default, System.Net.Http.HttpClient? httpClient = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.MistralAI.MistralAIChatCompletionService : string * string * Uri * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.MistralAI.MistralAIChatCompletionService
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 MistralAI 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