From 020caa9afdeeb422f63fce72219b25da0968461e Mon Sep 17 00:00:00 2001 From: AiHaibara <166741903+jyx04@users.noreply.github.com> Date: Fri, 21 Jun 2024 20:06:30 +0800 Subject: [PATCH] Update _worker.js --- _worker.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/_worker.js b/_worker.js index baf5ca0..b3e3e11 100644 --- a/_worker.js +++ b/_worker.js @@ -2722,27 +2722,6 @@ function combineData(usersData, historyData) { return combinedData; } -function generateHeaderRow(historyData) { - return historyData.map(h => `GPT-4GPT-3.5`).join(''); -} - -function generateTimestampRow(historyData) { - return historyData.map(h => `${h.timestamp}`).join(''); -} - -async function getHistoryData(queryType) { - const logType = queryType === 'plus' ? 'PlusUsageLogs' : 'FreeUsageLogs'; - const historyLogs = await KV.get(logType); - return historyLogs ? JSON.parse(historyLogs) : []; -} - - - - - - - -