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

x/openai/resources/uploads/uploads.ts>Upload

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

The Upload object can accept byte chunks in the form of Parts.

Properties

id: string

The Upload unique identifier, which can be referenced in API endpoints.

bytes: number

The intended number of bytes to be uploaded.

created_at: number

The Unix timestamp (in seconds) for when the Upload was created.

expires_at: number

The Unix timestamp (in seconds) for when the Upload was created.

filename: string

The name of the file to be uploaded.

object: "upload"

The object type, which is always "upload".

purpose: string

The intended purpose of the file. Please refer here for acceptable values.

status:
| "pending"
| "completed"
| "cancelled"
| "expired"

The status of the Upload.

optional
file: FilesAPI.FileObject | null

The ready File object after the Upload is completed.