From c3580ce7844c2a7b73fda7cb6033b5184c58c13c Mon Sep 17 00:00:00 2001 From: YasinOnm08 Date: Thu, 10 Oct 2024 08:01:28 +0200 Subject: [PATCH] lol --- app/backend/ChatHistory.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 app/backend/ChatHistory.ts diff --git a/app/backend/ChatHistory.ts b/app/backend/ChatHistory.ts deleted file mode 100644 index 1f5b845..0000000 --- a/app/backend/ChatHistory.ts +++ /dev/null @@ -1,28 +0,0 @@ - -// type Message = { -// role: string; -// content:string -// } - -// type Chat = { -// name: string; -// messages: Message[]; -// timestamp: number; -// }; - -// export function addMessageToHistory(index: number, chat: Chat): void { -// if (index >= 0 && index < chatHistory.length) { -// chatHistory[index] = chat; -// chatHistory.sort((a, b) => b.timestamp - a.timestamp) -// } -// } - -// export function removeMessageFromHistory(timestamp: number): void { -// const index = chatHistory.findIndex((msg) => msg.timestamp === timestamp); -// if (index > -1) { -// chatHistory.splice(index, 1); -// console.log(`Removed message with timestamp: ${timestamp}`); -// } else { -// console.log(`Message not found with timestamp: ${timestamp}`); -// } -// }