Class: OpenAI::Models::FileObject
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::FileObject
- Defined in:
- lib/openai/models/file_object.rb
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#bytes ⇒ Integer
The size of the file, in bytes.
-
#created_at ⇒ Integer
The Unix timestamp (in seconds) for when the file was created.
-
#expires_at ⇒ Integer?
The Unix timestamp (in seconds) for when the file will expire.
-
#filename ⇒ String
The name of the file.
-
#id ⇒ String
The file identifier, which can be referenced in the API endpoints.
-
#object ⇒ Symbol, :file
The object type, which is always ‘file`.
-
#purpose ⇒ Symbol, OpenAI::Models::FileObject::Purpose
The intended purpose of the file.
- #status ⇒ Symbol, OpenAI::Models::FileObject::Status deprecated Deprecated.
- #status_details ⇒ String? deprecated Deprecated.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id: , bytes: , created_at: , filename: , purpose: , status: , expires_at: nil, status_details: nil, object: :file) ⇒ Object
constructor
Some parameter documentations has been truncated, see FileObject for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id: , bytes: , created_at: , filename: , purpose: , status: , expires_at: nil, status_details: nil, object: :file) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::FileObject for more details.
The ‘File` object represents a document that has been uploaded to OpenAI.
|
# File 'lib/openai/models/file_object.rb', line 69
|
Instance Attribute Details
#bytes ⇒ Integer
The size of the file, in bytes.
17 |
# File 'lib/openai/models/file_object.rb', line 17 required :bytes, Integer |
#created_at ⇒ Integer
The Unix timestamp (in seconds) for when the file was created.
23 |
# File 'lib/openai/models/file_object.rb', line 23 required :created_at, Integer |
#expires_at ⇒ Integer?
The Unix timestamp (in seconds) for when the file will expire.
58 |
# File 'lib/openai/models/file_object.rb', line 58 optional :expires_at, Integer |
#filename ⇒ String
The name of the file.
29 |
# File 'lib/openai/models/file_object.rb', line 29 required :filename, String |
#id ⇒ String
The file identifier, which can be referenced in the API endpoints.
11 |
# File 'lib/openai/models/file_object.rb', line 11 required :id, String |
#object ⇒ Symbol, :file
The object type, which is always ‘file`.
35 |
# File 'lib/openai/models/file_object.rb', line 35 required :object, const: :file |
#purpose ⇒ Symbol, OpenAI::Models::FileObject::Purpose
The intended purpose of the file. Supported values are ‘assistants`, `assistants_output`, `batch`, `batch_output`, `fine-tune`, `fine-tune-results` and `vision`.
43 |
# File 'lib/openai/models/file_object.rb', line 43 required :purpose, enum: -> { OpenAI::FileObject::Purpose } |
#status ⇒ Symbol, OpenAI::Models::FileObject::Status
Deprecated. The current status of the file, which can be either ‘uploaded`, `processed`, or `error`.
52 |
# File 'lib/openai/models/file_object.rb', line 52 required :status, enum: -> { OpenAI::FileObject::Status } |
#status_details ⇒ String?
Deprecated. For details on why a fine-tuning training file failed validation, see the ‘error` field on `fine_tuning.job`.
67 |
# File 'lib/openai/models/file_object.rb', line 67 optional :status_details, String |
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/openai/models/file_object.rb', line 109
|