We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a021efb commit 468c040Copy full SHA for 468c040
1 file changed
extensions/openai/embedding-batch.ts
@@ -51,7 +51,9 @@ type OpenAiBatchOutputLine = ProviderBatchOutputLine;
51
export const OPENAI_BATCH_ENDPOINT = EMBEDDING_BATCH_ENDPOINT;
52
const OPENAI_BATCH_COMPLETION_WINDOW = "24h";
53
const OPENAI_BATCH_MAX_REQUESTS = 50000;
54
-const OPENAI_BATCH_MAX_JSONL_BYTES = 9 * 1024 * 1024;
+// OpenAI accepts 200 MB Batch input files. Keep a safety margin so the JSONL
55
+// splitter avoids boundary-size uploads while preserving source-wide batching.
56
+const OPENAI_BATCH_MAX_JSONL_BYTES = 190 * 1024 * 1024;
57
const OPENAI_BATCH_MAX_POLL_BACKOFF_MS = 5 * 60_000;
58
59
async function submitOpenAiBatch(params: {
0 commit comments