Skip to content

Commit 07421d7

Browse files
authored
fix: set autoUnload in onLoad() (#5956)
The variable was not initialized resulted in always setting true when starting. This change fixes it.
1 parent 1c74bfd commit 07421d7

File tree

1 file changed

+2
-0
lines changed
  • extensions/llamacpp-extension/src

1 file changed

+2
-0
lines changed

extensions/llamacpp-extension/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ export default class llamacpp_extension extends AIEngine {
170170
}
171171
this.config = loadedConfig as LlamacppConfig
172172

173+
this.autoUnload = this.config.auto_unload
174+
173175
// This sets the base directory where model files for this provider are stored.
174176
this.providerPath = await joinPath([
175177
await getJanDataFolderPath(),

0 commit comments

Comments
 (0)