Class: OpenAI::Models::Model
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Model
- Defined in:
- lib/openai/models/model.rb
Overview
Instance Attribute Summary collapse
-
#created ⇒ Integer
The Unix timestamp (in seconds) when the model was created.
-
#id ⇒ String
The model identifier, which can be referenced in the API endpoints.
-
#object ⇒ Symbol, :model
The object type, which is always “model”.
-
#owned_by ⇒ String
The organization that owns the model.
Instance Method Summary collapse
-
#initialize(id: , created: , owned_by: , object: :model) ⇒ Object
constructor
Describes an OpenAI model offering that can be used with the API.
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: , created: , owned_by: , object: :model) ⇒ Object
Describes an OpenAI model offering that can be used with the API.
|
# File 'lib/openai/models/model.rb', line 31
|
Instance Attribute Details
#created ⇒ Integer
The Unix timestamp (in seconds) when the model was created.
17 |
# File 'lib/openai/models/model.rb', line 17 required :created, Integer |
#id ⇒ String
The model identifier, which can be referenced in the API endpoints.
11 |
# File 'lib/openai/models/model.rb', line 11 required :id, String |
#object ⇒ Symbol, :model
The object type, which is always “model”.
23 |
# File 'lib/openai/models/model.rb', line 23 required :object, const: :model |
#owned_by ⇒ String
The organization that owns the model.
29 |
# File 'lib/openai/models/model.rb', line 29 required :owned_by, String |