From 44dbf127f91ff0f82ac6d8a2fe257ffe2c37ca42 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Thu, 4 Sep 2025 21:17:43 -0700 Subject: [PATCH] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a33b37e..1f5253b 100644 --- a/index.js +++ b/index.js @@ -1,8 +1,8 @@ import OpenAI from 'openai'; const TTL_MS = 20 * 60 * 1000; -const BATCH_MS = 60; -const BATCH_BYTES = 2048; +const BATCH_MS = 400; +const BATCH_BYTES = 4096; // SNAPSHOT_MIN_MS is no longer needed as we removed throttled saving. // Heartbeat configuration: run every 4s while streaming to prevent eviction.