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.31.0/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:
| "fine-tune"
| "fine-tune-results"
| "assistants"
| "assistants_output"

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

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