struct OpenAI::FileResponse

Overview

Represents OpenAPI file object

Included Modules

Extended Modules

Defined in:

openai/api/file.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def bytes : Int32 #

The size of the file in bytes


[View source]
def created_at : Time #

[View source]
def filename : String #

The name of the file


[View source]
def id : String #

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


[View source]
def object : String #

the object type, which is always "file"


[View source]
def purpose : String #

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


[View source]
def status : FileStatus | Nil #

The current status of the file


[View source]
def status_details : String | Nil #

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


[View source]