Udostępnij za pośrednictwem


AIServiceExtensions.GetModelId(IAIService) Method

Definition

Gets the model identifier from service's Attributes.

public static string? GetModelId (this Microsoft.SemanticKernel.Services.IAIService service);
static member GetModelId : Microsoft.SemanticKernel.Services.IAIService -> string
<Extension()>
Public Function GetModelId (service As IAIService) As String

Parameters

service
IAIService

The service from which to get the model identifier.

Returns

The model identifier if it was specified in the service's attributes; otherwise, null.

Applies to