feat: add OpenAI batch memory indexing

This commit is contained in:
Peter Steinberger committed 2026-01-17 22:32:04 +00:00
1 parent acc3eb11d0
commit a31a79396b
11 files changed
+587 -38

No files matched your search

+10
View File
@@ -158,6 +158,16 @@ export type MemorySearchConfig = {
baseUrl?: string;
apiKey?: string;
headers?: Record<string, string>;
batch?: {
/** Enable OpenAI Batch API for embedding indexing (default: false). */
enabled?: boolean;
/** Wait for batch completion (default: true). */
wait?: boolean;
/** Poll interval in ms (default: 5000). */
pollIntervalMs?: number;
/** Timeout in minutes (default: 60). */
timeoutMinutes?: number;
};
};
/** Fallback behavior when local embeddings fail. */
fallback?: "openai" | "none";