class

OpenAI::Model

Inherits JSON::Serializable < Reference < Object

Describes an OpenAI model offering that can be used with the API.

Constructors

new(id : String = "", created : Int64 = 0, object : ModelObject = ModelObject::Model, owned_by : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

created

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

Source
created=(created : Int64)

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

Source
id

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

Source
id=(id : String)

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

Source
object

The object type, which is always "model".

Source
object=(object : ModelObject)

The object type, which is always "model".

Source
owned_by

The organization that owns the model.

Source
owned_by=(owned_by : String)

The organization that owns the model.

Source