OnnxRuntimeGenAIChatCompletionService(String, String, ILoggerFactory) 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 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.