From 03b3bfbd095328df5319e522689a9efc789e0420 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Wed, 25 Dec 2024 10:41:32 +0800 Subject: [PATCH] :bug: Fix(PostChat): AI summary wordLimit type error --- layouts/partials/init/index.html | 2 +- layouts/partials/plugin/post-chat-ai.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/init/index.html b/layouts/partials/init/index.html index c95ed9a8..2b92e3d1 100644 --- a/layouts/partials/init/index.html +++ b/layouts/partials/init/index.html @@ -1,4 +1,4 @@ -{{- .Scratch.Set "version" "v0.3.17-d3cb08f5" -}} +{{- .Scratch.Set "version" "v0.3.17-33a8861e" -}} {{- .Scratch.Set "this" dict -}} {{- partial "init/detection-env.html" . -}} diff --git a/layouts/partials/plugin/post-chat-ai.html b/layouts/partials/plugin/post-chat-ai.html index 04ae36e6..e815f36d 100644 --- a/layouts/partials/plugin/post-chat-ai.html +++ b/layouts/partials/plugin/post-chat-ai.html @@ -43,7 +43,7 @@ {{- $postSummaryConfig = add $postSummaryConfig (printf "let %v_blacklist='%v';" $p .) -}} {{- end -}} {{- with $summaryConfig.wordLimit -}} - {{- $postSummaryConfig = add $postSummaryConfig (printf "let %v_wordLimit='%v';" $p .) -}} + {{- $postSummaryConfig = add $postSummaryConfig (printf "let %v_wordLimit=%d;" $p .) -}} {{- end -}} {{- if eq $summaryConfig.typingAnimate false -}} {{- $postSummaryConfig = add $postSummaryConfig (printf "let %v_typingAnimate=false;" $p) -}}