Skip to content

Commit

Permalink
Expand memory to 4k
Browse files Browse the repository at this point in the history
  • Loading branch information
miku448 committed Sep 28, 2023
1 parent 512c7f6 commit e8741ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/extensions/src/memory/GPTMemoryV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export class GPTShortTermMemoryV2 extends MikuCore.Memory.ShortTermMemory {
let memorySize = this.memorySize;
let memoryLinesPrompt = '';

// Entire prompt under 2048 tokens
const MAX_PROMPT_TOKENS = 1800;
// Entire prompt under 4096 tokens
const MAX_PROMPT_TOKENS = 3600;
do {
memoryLinesPrompt = this.buildMemoryLinesPrompt(memorySize--);
} while (
Expand Down

0 comments on commit e8741ec

Please sign in to comment.