fix: set autoUnload in onLoad() (#5956)

The variable was not initialized resulted in always setting true when
starting.

This change fixes it.
This commit is contained in:
Akarshan Biswas 2025-07-28 20:54:21 +05:30 committed by GitHub
parent 1c74bfd5ef
commit 07421d7f53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,6 +170,8 @@ export default class llamacpp_extension extends AIEngine {
}
this.config = loadedConfig as LlamacppConfig
this.autoUnload = this.config.auto_unload
// This sets the base directory where model files for this provider are stored.
this.providerPath = await joinPath([
await getJanDataFolderPath(),