openai
Version:
The official TypeScript library for the OpenAI API
22 lines • 1.1 kB
text/typescript
import type { RequestOptions } from "../internal/request-options.mjs";
import type { FileBatches, VectorStoreFileBatch } from "../resources/vector-stores/file-batches.mjs";
import type { Files, VectorStoreFile } from "../resources/vector-stores/files.mjs";
type PollOptions = RequestOptions & {
pollIntervalMs?: number;
};
/**
* Polls an attached file through the resource's retrieve method until it completes,
* fails, or is cancelled. Retrieval errors are propagated unchanged.
*
* @internal
*/
export declare function pollVectorStoreFile(resource: Pick<Files, 'retrieve'>, vectorStoreID: string, fileID: string, options?: PollOptions): Promise<VectorStoreFile>;
/**
* Polls a file batch through the resource's retrieve method until it completes,
* fails, or is cancelled. Retrieval errors are propagated unchanged.
*
* @internal
*/
export declare function pollVectorStoreFileBatch(resource: Pick<FileBatches, 'retrieve'>, vectorStoreID: string, batchID: string, options?: PollOptions): Promise<VectorStoreFileBatch>;
export {};
//# sourceMappingURL=vector-store-polling.d.mts.map