Skip to content

Commit

Permalink
Update of setup of FreeCode chat interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Tolerable committed Feb 6, 2025
1 parent 9fdfaa3 commit 594491c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions memory-0017.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ <h1>AI Memory Chat</h1>
<div class="memories-list" id="memoriesList"></div>
</div>
</div>
</div>
<button class="clear-btn" onclick="clearMemories()" title="Clear AI Memories">🧠</button>
<button class="clear-btn" onclick="clearChat()" title="Clear Chat History">🗑️</button>
</div>
Expand Down Expand Up @@ -335,7 +334,8 @@ <h1>AI Memory Chat</h1>
let memories = storedData.memories || {};
let memoryUsage = storedData.memoryUsage || {};
let chatHistory = storedData.chatHistory || [];

updateMemoryCount();

const MAX_MESSAGES = 20; // Keep last 20 messages
const MAX_MESSAGE_LENGTH = 4000; // Reasonable limit for most models

Expand Down
3 changes: 2 additions & 1 deletion memory.html
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ <h1>AI Memory Chat</h1>
let memories = storedData.memories || {};
let memoryUsage = storedData.memoryUsage || {};
let chatHistory = storedData.chatHistory || [];

updateMemoryCount();

const MAX_MESSAGES = 20; // Keep last 20 messages
const MAX_MESSAGE_LENGTH = 4000; // Reasonable limit for most models

Expand Down

0 comments on commit 594491c

Please sign in to comment.