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

x/openai/resources/mod.ts>FileObject

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

The File object represents a document that has been uploaded to OpenAI.

Properties

id: string

The file identifier, which can be referenced in the API endpoints.

bytes: number

The size of the file, in bytes.

created_at: number

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

filename: string

The name of the file.

object: "file"

The object type, which is always file.

purpose:
| "assistants"
| "assistants_output"
| "batch"
| "batch_output"
| "fine-tune"
| "fine-tune-results"
| "vision"

The intended purpose of the file. Supported values are assistants, assistants_output, batch, batch_output, fine-tune, fine-tune-results and vision.

deprecated
status: "uploaded" | "processed" | "error"
optional
deprecated
status_details: string