Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/openai/resources/beta/vector-stores/files.ts>Files#poll

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
method Files.prototype.poll
import { Files } from "https://deno.land/x/openai@v4.38.5/resources/beta/vector-stores/files.ts";

Wait for the vector store file to finish processing.

Note: this will return even if the file failed to process, you need to check file.last_error and file.status to handle these cases

Parameters

vectorStoreId: string
fileId: string
optional
options: Core.RequestOptions & { pollIntervalMs?: number; }