fix: 自动记忆优化 — 禁止自动提取规则、提高提取门槛与质量
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user