From f6f13f795503aff17d78982ae76e33bf3d061218 Mon Sep 17 00:00:00 2001 From: goanon016 Date: Sun, 16 Jul 2023 08:35:42 +0000 Subject: [PATCH] Fix cell size error in sheets (khanon/oai-reverse-proxy!26) --- src/prompt-logging/backends/sheets.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/prompt-logging/backends/sheets.ts b/src/prompt-logging/backends/sheets.ts index 796bc3e..14ded10 100644 --- a/src/prompt-logging/backends/sheets.ts +++ b/src/prompt-logging/backends/sheets.ts @@ -256,9 +256,9 @@ export const appendBatch = async (batch: PromptLogEntry[]) => { return [ entry.model, entry.endpoint, - entry.promptRaw, - entry.promptFlattened, - entry.response, + entry.promptRaw.slice(0, 50000), + entry.promptFlattened.slice(0, 50000), + entry.response.slice(0, 50000), ]; }); log.info({ sheetName, rowCount: newRows.length }, "Appending log batch.");