Udostępnij za pośrednictwem


AIServiceExtensions.GetApiVersion(IAIService) Method

Definition

Gets the API version from service's Attributes

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

Parameters

service
IAIService

The service from which to get the API version.

Returns

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

Applies to