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 --fit for mac

Louis983de336797f
diff --git a/extensions/llamacpp-extension/src/index.ts b/extensions/llamacpp-extension/src/index.ts
index 87fa9eb79..d15874a6e 100644
--- a/extensions/llamacpp-extension/src/index.ts
+++ b/extensions/llamacpp-extension/src/index.ts
@@ -125,6 +125,14 @@ 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)