fix: 自动记忆优化 — 禁止自动提取规则、提高提取门槛与质量

This commit is contained in:
thzxx
2026-04-19 19:36:41 +08:00
parent 2134e1be38
commit 8973077abd
3 changed files with 39 additions and 16 deletions
+1 -1
View File
@@ -706,7 +706,7 @@ export async function sendMessage(): Promise<void> {
updateTotalTokens();
// ── 自动提取记忆(非阻塞)──
if (isMemoryEnabled() && freshSession.messages.length >= 6) {
if (isMemoryEnabled() && freshSession.messages.length >= 10) {
const currentSession2 = state.get<ChatSession | null>(KEYS.CURRENT_SESSION);
if (currentSession2) {
extractMemoriesFromConversation(