Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix(llamacpp): default 'Strip reasoning from context' to disabled
Akarshan Biswas702c731b770d
diff --git a/extensions/llamacpp-extension/settings.json b/extensions/llamacpp-extension/settings.jsonindex b818175bd..cc43082d6 100644--- a/extensions/llamacpp-extension/settings.json+++ b/extensions/llamacpp-extension/settings.json@@ -265,7 +265,7 @@"description": "Remove prior turns' thinking/reasoning content before resending history. Improves KV-cache reuse across turns, but some models (e.g. newer Qwen releases) recommend keeping it for better multi-turn reasoning.","controllerType": "checkbox","controllerProps": {- "value": true+ "value": false}},{diff --git a/web-app/src/lib/model-factory.ts b/web-app/src/lib/model-factory.tsindex 0d6219e84..1ce3c3858 100644--- a/web-app/src/lib/model-factory.ts+++ b/web-app/src/lib/model-factory.ts@@ -597,13 +597,13 @@ export function stripAssistantReasoningInBody(}}-/** Reads the per-provider "Strip reasoning from context" checkbox; defaults to true. */+/** Reads the per-provider "Strip reasoning from context" checkbox; defaults to false. */function shouldStripReasoningFromContext(provider?: ProviderObject): boolean {const setting = provider?.settings?.find((s) => s.key === 'strip_reasoning_from_context')const value = setting?.controller_props?.value- return typeof value === 'boolean' ? value : true+ return typeof value === 'boolean' ? value : false}/** Wraps `inner` to strip reasoning fields from assistant messages before send. */