mirror of
https://github.com/sune-org/ORP.git
synced 2026-01-14 00:27:59 +00:00
Update index.js
This commit is contained in:
4
index.js
4
index.js
@@ -1,8 +1,8 @@
|
|||||||
import OpenAI from 'openai';
|
import OpenAI from 'openai';
|
||||||
|
|
||||||
const TTL_MS = 20 * 60 * 1000;
|
const TTL_MS = 20 * 60 * 1000;
|
||||||
const BATCH_MS = 60;
|
const BATCH_MS = 400;
|
||||||
const BATCH_BYTES = 2048;
|
const BATCH_BYTES = 4096;
|
||||||
// SNAPSHOT_MIN_MS is no longer needed as we removed throttled saving.
|
// SNAPSHOT_MIN_MS is no longer needed as we removed throttled saving.
|
||||||
|
|
||||||
// Heartbeat configuration: run every 4s while streaming to prevent eviction.
|
// Heartbeat configuration: run every 4s while streaming to prevent eviction.
|
||||||
|
|||||||
Reference in New Issue
Block a user