destroy

fun destroy()

Destroys the AiliaLLM instance and releases resources.

When using QNN, this method must be called on the same thread that constructed this instance. When using QNN, moving only resource release to another thread, such as the UI thread, may cause QnnDevice_create failed: code 14001 when QNN is subsequently used on a different thread.