Skip to content

Commit

Permalink
Change to ChatGPT to remember 60 messages
Browse files Browse the repository at this point in the history
  • Loading branch information
N0ise9 committed Feb 20, 2024
1 parent ae8be50 commit c83d81c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/EasterEggs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export async function normCommand(chatChannel: TextChannel, message: Message, op
chatHist.push({ content: reply, role: "assistant" });
}

if (chatHist.length > 300) {
if (chatHist.length > 50) {
//Shift twice because two messages are added, user - then assistant
chatHist.shift();
chatHist.shift();
Expand Down

0 comments on commit c83d81c

Please sign in to comment.