Skip to content
MarcoDotIO edited this page Dec 5, 2022 · 1 revision

File

The file object used to read file information from the Files endpoint.

public struct File: Codable, Identifiable 

Inheritance

Codable, Identifiable

Properties

id

The ID of the file.

public let id: String

object

The OpenAIObject object type of the file.

public let object: OpenAIObject

bytes

The amount of storage the file takes up in bytes.

public let bytes: Int

createdAt

The creation date of the file.

public let createdAt: Int

filename

The file's name.

public let filename: String

purpose

The purpose the file has. Usually is "fine-tune".

public let purpose: String

status

The upload status of the file.

public let status: FileStatus?

statusDetails

The status detail when uploading the file.

public let statusDetails: String?
Types
Global Functions

Clone this wiki locally