From 8451f04302c3f00f6cdf61d53e3591bdec0f635f Mon Sep 17 00:00:00 2001 From: hubian <908234780@qq.com> Date: Sun, 26 Apr 2026 22:10:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=87=E9=A2=98=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=80=BB=E7=BB=93=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20-=20=E7=AC=AC=E4=B8=80=E6=AC=A1=E5=AF=B9=E8=AF=9D(2?= =?UTF-8?q?=E6=9D=A1)=E5=92=8C=E6=AF=8F5=E6=AC=A1=E5=AF=B9=E8=AF=9D(10?= =?UTF-8?q?=E6=9D=A1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/app.js | 3 ++- www/index.html | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/www/app.js b/www/app.js index b3d3cea..3f834ff 100644 --- a/www/app.js +++ b/www/app.js @@ -927,7 +927,8 @@ async function streamGenerate(userMsgIndex) { // 自动总结标题:第一次对话和每隔5次对话 const totalMessages = currentConversation.messages.length; - if (totalMessages === 1 || totalMessages % 5 === 0) { + // 第一次对话(用户+AI=2条)或每5次对话(10条) + if (totalMessages === 2 || totalMessages % 10 === 0) { await generateConversationTitle(); } } diff --git a/www/index.html b/www/index.html index 49ccc13..2c12361 100644 --- a/www/index.html +++ b/www/index.html @@ -8,12 +8,12 @@ AI助手 - +
- - + + \ No newline at end of file