struct

OpenAI::FileResponse

Inherits JSON::Serializable / Struct / Value / Object

Represents OpenAPI file object

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

bytes

The size of the file in bytes

Source
created_at

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

Source
filename

The name of the file

Source
id

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

Source
object

the object type, which is always "file"

Source
purpose

The intended purpose of the file. Currently, only "fine-tune" is supported.

Source
status

The current status of the file

Source
status_details

Additional details about the status of the file. If the file is in the error state, this will include a message describing the error.

Source