License
Contents
[
Hide
]
The Aspose.LLM.License class is used to apply and check the product license.
Applying a license
Apply the license once per process before using AsposeLLMApi:
var license = new Aspose.LLM.License();
license.SetLicense("Aspose.LLM.lic");
You can pass a file path or a stream. See Licensing in Getting started for file, stream, and embedded-resource options.
Checking license status
bool isLicensed = Aspose.LLM.License.IsLicensed;
Use this to verify that a license has been applied (e.g. for logging or conditional behavior). The API will throw if you call methods that require a license when none is set; see the product documentation for evaluation limitations.