OnnxKernelBuilderExtensions.AddOnnxRuntimeGenAIChatCompletion Method
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.
Add OnnxRuntimeGenAI Chat Completion services to the kernel builder.
public static Microsoft.SemanticKernel.IKernelBuilder AddOnnxRuntimeGenAIChatCompletion (this Microsoft.SemanticKernel.IKernelBuilder builder, string modelId, string modelPath, string? serviceId = default);
static member AddOnnxRuntimeGenAIChatCompletion : Microsoft.SemanticKernel.IKernelBuilder * string * string * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddOnnxRuntimeGenAIChatCompletion (builder As IKernelBuilder, modelId As String, modelPath As String, Optional serviceId As String = Nothing) As IKernelBuilder
Parameters
- builder
- IKernelBuilder
The kernel builder.
- modelId
- String
Model Id.
- modelPath
- String
The generative AI ONNX model path.
- serviceId
- String
The optional service ID.
Returns
The updated kernel builder.