Skip to content

file_object

Classes:

Name Description
FileObject

FileObject

Attributes:

Name Type Description
bytes int

The size of the file, in bytes.

created_at int

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

filename str

The name of the file.

id str

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

object Literal['file']

The object type, which is always file.

purpose Literal['fine-tune', 'fine-tune-results', 'assistants', 'assistants_output']

The intended purpose of the file.

status Literal['uploaded', 'processed', 'error']

Deprecated.

status_details Optional[str]

Deprecated.

bytes instance-attribute

bytes: int

The size of the file, in bytes.

created_at instance-attribute

created_at: int

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

filename instance-attribute

filename: str

The name of the file.

id instance-attribute

id: str

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

object instance-attribute

object: Literal['file']

The object type, which is always file.

purpose instance-attribute

purpose: Literal[
    "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.

status instance-attribute

status: Literal['uploaded', 'processed', 'error']

Deprecated.

The current status of the file, which can be either uploaded, processed, or error.

status_details class-attribute instance-attribute

status_details: Optional[str] = None

Deprecated.

For details on why a fine-tuning training file failed validation, see the error field on fine_tuning.job.