Merge branch 'main' of interstellardevelopment.org:React-Group/interstellar_ai

This commit is contained in:
Patrick_Pluto 2024-10-07 08:57:41 +02:00
commit 90af1ae147
5 changed files with 19 additions and 7 deletions

View file

@ -14,6 +14,7 @@ function addMessageToHistory(name: string, message: any): void {
};
chatHistory.push(newMessage);
console.log(`Added message from ${name}: ${message}`);
chatHistory.sort((a,b) => b.timestamp - a.timestamp)
}
function removeMessageFromHistory(timestamp: number): void {