次の方法で共有


OnnxKernelBuilderExtensions.AddOnnxRuntimeGenAIChatCompletion Method

Definition

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.

Applies to