Skip to content

Commit 4d4cf89

Browse files
authored
fix: Persist 'Auto-Unload Old Models' setting in llama.cpp (#5906)
The 'Auto-Unload Old Models' setting in the llama.cpp extension failed to persist due to a typo in its key name within `settings.json`. The key was incorrectly `auto_unload_models` instead of `auto_unload`. This commit corrects the key name to `auto_unload`, ensuring that user-configured changes to this setting are properly saved, retrieved, and persist across application restarts. This resolves the issue where the setting would change and remain to its previous value after being changed.
1 parent a1af70f commit 4d4cf89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/llamacpp-extension/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"controllerProps": { "value": true }
1818
},
1919
{
20-
"key": "auto_unload_models",
20+
"key": "auto_unload",
2121
"title": "Auto-Unload Old Models",
2222
"description": "Automatically unloads models that are not in use to free up memory. Ensure only one model is loaded at a time.",
2323
"controllerType": "checkbox",

0 commit comments

Comments
 (0)