Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/files.ts>Files#waitForProcessing

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

Waits for the given file to be processed, default timeout is 30 mins.

Parameters

id: string
optional
unnamed 1: { pollInterval?: number; maxWait?: number; } = [UNSUPPORTED]

Returns

Promise<FileObject>