fix: correctly apply auto_unload setting from config (#5953)

Previously, the `autoUnload` flag was not being updated when set via config,
causing models to be auto-unloaded regardless of the intended behavior.
This patch ensures the setting is respected at runtime.
This commit is contained in:
Akarshan Biswas 2025-07-28 19:17:29 +05:30 committed by GitHub
parent 432c942330
commit fa896b3bf3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -779,6 +779,8 @@ export default class llamacpp_extension extends AIEngine {
await this.ensureBackendReady(backend, version)
}
closure()
} else if (key === 'auto_unload') {
this.autoUnload = value as boolean
}
}