From 07421d7f5354c53a762352eb74f4d9f8d69db3ec Mon Sep 17 00:00:00 2001 From: Akarshan Biswas Date: Mon, 28 Jul 2025 20:54:21 +0530 Subject: [PATCH] fix: set autoUnload in onLoad() (#5956) The variable was not initialized resulted in always setting true when starting. This change fixes it. --- extensions/llamacpp-extension/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) 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(),