AIServiceExtensions.GetApiVersion(IAIService) 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.
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.