Partager via


OnnxRuntimeGenAIChatCompletionService(String, String, ILoggerFactory) Constructor

Definition

Initializes a new instance of the OnnxRuntimeGenAIChatCompletionService class.

public OnnxRuntimeGenAIChatCompletionService (string modelId, string modelPath, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.Onnx.OnnxRuntimeGenAIChatCompletionService : string * string * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.Onnx.OnnxRuntimeGenAIChatCompletionService
Public Sub New (modelId As String, modelPath As String, Optional loggerFactory As ILoggerFactory = Nothing)

Parameters

modelId
String

The name of the model.

modelPath
String

The generative AI ONNX model path for the chat completion service.

loggerFactory
ILoggerFactory

Optional logger factory to be used for logging.

Applies to