Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

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

Akarshan Biswas07421d7f5354
diff --git a/extensions/llamacpp-extension/src/index.ts b/extensions/llamacpp-extension/src/index.ts
index a4c224d1c..3f6c70f04 100644
--- a/extensions/llamacpp-extension/src/index.ts
+++ b/extensions/llamacpp-extension/src/index.ts
@@ -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(),