Skip to main content
Module

x/openai/core.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.40.0/core.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().

definition: FileLike | ResponseLike | FsReadStream