Package com.openai.models.models
Class Model
-
- All Implemented Interfaces:
public final class Model
Describes an OpenAI model offering that can be used with the API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
Model.Builder
A builder for Model.
-
Method Summary
Modifier and Type Method Description final String
id()
The model identifier, which can be referenced in the API endpoints. final Long
created()
The Unix timestamp (in seconds) when the model was created. final JsonValue
_object_()
The object type, which is always "model". final String
ownedBy()
The organization that owns the model. final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<Long>
_created()
Returns the raw JSON value of created. final JsonField<String>
_ownedBy()
Returns the raw JSON value of ownedBy. final Map<String, JsonValue>
_additionalProperties()
final Model.Builder
toBuilder()
final Model
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static Model.Builder
builder()
Returns a mutable builder for constructing an instance of Model. -
-
Method Detail
-
_object_
final JsonValue _object_()
The object type, which is always "model".
Expected to always return the following:
JsonValue.from("model")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_created
final JsonField<Long> _created()
Returns the raw JSON value of created.
Unlike created, this method doesn't throw if the JSON field has an unexpected type.
-
_ownedBy
final JsonField<String> _ownedBy()
Returns the raw JSON value of ownedBy.
Unlike ownedBy, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Model.Builder toBuilder()
-
builder
final static Model.Builder builder()
Returns a mutable builder for constructing an instance of Model.
The following fields are required:
.id() .created() .ownedBy()
-
-
-
-