UNPKG

openai

Version:

The official TypeScript library for the OpenAI API

18 lines • 924 B
import type { OpenAI } from "../client.mjs"; import type { RequestOptions } from "../internal/request-options.mjs"; import type { FileBatches, VectorStoreFileBatch } from "../resources/vector-stores/file-batches.mjs"; import type { Uploadable } from "../uploads.mjs"; type UploadOptions = RequestOptions & { pollIntervalMs?: number; maxConcurrency?: number; }; /** * Uploads files with a shared iterator, then creates and polls the batch. Every * worker settles before upload failures are propagated. Zero concurrency is * rejected before any upload or batch-creation request. * * @internal */ export declare function uploadAndPollVectorStoreFileBatch(resource: Pick<FileBatches, 'createAndPoll'>, client: Pick<OpenAI, 'files'>, vectorStoreId: string, files: Uploadable[], fileIds: string[], options?: UploadOptions): Promise<VectorStoreFileBatch>; export {}; //# sourceMappingURL=vector-store-upload.d.mts.map