Class ModelInfo
-
- All Implemented Interfaces:
public final class ModelInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classModelInfo.BuilderA builder for ModelInfo.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique model identifier. final Optional<ModelCapabilities>capabilities()Model capability information. final OffsetDateTimecreatedAt()RFC 3339 datetime string representing the time at which the model was released. final StringdisplayName()A human-readable name for the model. final Optional<Long>maxInputTokens()Maximum input context window size in tokens for this model. final Optional<Long>maxTokens()Maximum value for the max_tokensparameter when using this model.final JsonValue_type()Object type. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<ModelCapabilities>_capabilities()Returns the raw JSON value of capabilities. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_displayName()Returns the raw JSON value of displayName. final JsonField<Long>_maxInputTokens()Returns the raw JSON value of maxInputTokens. final JsonField<Long>_maxTokens()Returns the raw JSON value of maxTokens. final Map<String, JsonValue>_additionalProperties()final ModelInfo.BuildertoBuilder()final ModelInfovalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ModelInfo.Builderbuilder()Returns a mutable builder for constructing an instance of ModelInfo. -
-
Method Detail
-
capabilities
final Optional<ModelCapabilities> capabilities()
Model capability information.
-
createdAt
final OffsetDateTime createdAt()
RFC 3339 datetime string representing the time at which the model was released. May be set to an epoch value if the release date is unknown.
-
displayName
final String displayName()
A human-readable name for the model.
-
maxInputTokens
final Optional<Long> maxInputTokens()
Maximum input context window size in tokens for this model.
-
maxTokens
final Optional<Long> maxTokens()
Maximum value for the
max_tokensparameter when using this model.
-
_type
final JsonValue _type()
Object type.
For Models, this 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.
-
_capabilities
final JsonField<ModelCapabilities> _capabilities()
Returns the raw JSON value of capabilities.
Unlike capabilities, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_displayName
final JsonField<String> _displayName()
Returns the raw JSON value of displayName.
Unlike displayName, this method doesn't throw if the JSON field has an unexpected type.
-
_maxInputTokens
final JsonField<Long> _maxInputTokens()
Returns the raw JSON value of maxInputTokens.
Unlike maxInputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_maxTokens
final JsonField<Long> _maxTokens()
Returns the raw JSON value of maxTokens.
Unlike maxTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ModelInfo.Builder toBuilder()
-
validate
final ModelInfo validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ModelInfo.Builder builder()
Returns a mutable builder for constructing an instance of ModelInfo.
The following fields are required:
.id() .capabilities() .createdAt() .displayName() .maxInputTokens() .maxTokens()
-
-
-
-