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: disable auto fit setting by default (#7610)

Louiscdf55b5b6851
diff --git a/extensions/llamacpp-extension/settings.json b/extensions/llamacpp-extension/settings.json
index fcb24e464..25ba7ba45 100644
--- a/extensions/llamacpp-extension/settings.json
+++ b/extensions/llamacpp-extension/settings.json
@@ -54,7 +54,7 @@
"description": "Whether to adjust unset arguments to fit in device memory ('on' or 'off'). (env: LLAMA_ARG_FIT)",
"controllerType": "checkbox",
"controllerProps": {
- "value": true
+ "value": false
}
},
{
diff --git a/extensions/llamacpp-extension/src/index.ts b/extensions/llamacpp-extension/src/index.ts
index 3b67233f5..e8616e533 100644
--- a/extensions/llamacpp-extension/src/index.ts
+++ b/extensions/llamacpp-extension/src/index.ts
@@ -134,14 +134,6 @@ export default class llamacpp_extension extends AIEngine {
let settings = structuredClone(SETTINGS) // Clone to modify settings definition before registration
- // Disable fit by default on macOS
- if (IS_MAC) {
- const fitSetting = settings.find((s: any) => s.key === 'fit')
- if (fitSetting) {
- fitSetting.controllerProps.value = false
- }
- }
-
// This makes the settings (including the backend options and initial value) available to the Jan UI.
this.registerSettings(settings)
@@ -1561,7 +1553,7 @@ export default class llamacpp_extension extends AIEngine {
}
// Migrate old env vars
- if(typeof cfg.fit === 'string') cfg.fit = true
+ if (typeof cfg.fit === 'string') cfg.fit = true
logger.info(
'Calling Tauri command load_llama_model with config:',