mirror of
https://github.com/idootop/mi-gpt.git
synced 2025-04-21 18:43:16 +00:00
fix: 恢复原threshold数值
This commit is contained in:
parent
11dc25aa60
commit
bba886e275
@ -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 & {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user