Class BetaModelInfo
-
- All Implemented Interfaces:
public final class BetaModelInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaModelInfo.BuilderA builder for BetaModelInfo.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique model identifier. final Optional<BetaModelCapabilities>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<BetaModelCapabilities>_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 BetaModelInfo.BuildertoBuilder()final BetaModelInfovalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaModelInfo.Builderbuilder()Returns a mutable builder for constructing an instance of BetaModelInfo. -
-
Method Detail
-
capabilities
final Optional<BetaModelCapabilities> 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<BetaModelCapabilities> _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 BetaModelInfo.Builder toBuilder()
-
validate
final BetaModelInfo validate()
-
builder
final static BetaModelInfo.Builder builder()
Returns a mutable builder for constructing an instance of BetaModelInfo.
The following fields are required:
.id() .capabilities() .createdAt() .displayName() .maxInputTokens() .maxTokens()
-
-
-
-