aboutsummaryrefslogtreecommitdiff
path: root/modules/core/module-aiassist.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/module-aiassist.js')
-rw-r--r--modules/core/module-aiassist.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/core/module-aiassist.js b/modules/core/module-aiassist.js
index c3ebe1f..55dde6f 100644
--- a/modules/core/module-aiassist.js
+++ b/modules/core/module-aiassist.js
@@ -3170,7 +3170,10 @@ buildSystemPrompt() {
facts: wm._answerQuery(a.question || ''),
version: wm._model.version,
synthesized: wm._model.synthesized,
- snapshot: (a.detail === 'full') ? wm._model : JSON.parse(wm._modelDigest())
+ // v4.6.83: this was JSON.parse(wm._modelDigest()) and the digest was a
+ // string truncated mid-token, so the default path always threw
+ // "Unexpected end of JSON input". The model now hands back an object.
+ snapshot: (a.detail === 'full') ? wm._model : wm._modelSnapshot()
};
return JSON.stringify(wmOut);
}