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

x/openai/uploads.ts>Uploadable

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
type alias Uploadable
import { type Uploadable } from "https://deno.land/x/openai@v4.61.1/uploads.ts";

Typically, this is a native "File" class.

We provide the toFile utility to convert a variety of objects into the File class.

For convenience, you can also pass a fetch Response, or in Node, the result of fs.createReadStream().