fix: 恢复原threshold数值

This commit is contained in:
roitium 2024-07-24 10:21:44 +08:00
parent 11dc25aa60
commit bba886e275

View File

@ -100,7 +100,7 @@ export class MemoryManager {
threshold?: number; threshold?: number;
} }
) { ) {
const { threshold = 1 } = options; const { threshold = 10 } = options;
const lastMemory = firstOf(await this.getShortTermMemories({ take: 1 })); const lastMemory = firstOf(await this.getShortTermMemories({ take: 1 }));
const newMemories: (Memory & { const newMemories: (Memory & {
msg: Message & { msg: Message & {