Class ModelInfo.Builder
-
- All Implemented Interfaces:
public final class ModelInfo.BuilderA builder for ModelInfo.
-
-
Method Summary
Modifier and Type Method Description final ModelInfo.Builderid(String id)Unique model identifier. final ModelInfo.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final ModelInfo.Buildercapabilities(ModelCapabilities capabilities)Model capability information. final ModelInfo.Buildercapabilities(Optional<ModelCapabilities> capabilities)Alias for calling Builder.capabilities with capabilities.orElse(null).final ModelInfo.Buildercapabilities(JsonField<ModelCapabilities> capabilities)Sets Builder.capabilities to an arbitrary JSON value. final ModelInfo.BuildercreatedAt(OffsetDateTime createdAt)RFC 3339 datetime string representing the time at which the model was released. final ModelInfo.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final ModelInfo.BuilderdisplayName(String displayName)A human-readable name for the model. final ModelInfo.BuilderdisplayName(JsonField<String> displayName)Sets Builder.displayName to an arbitrary JSON value. final ModelInfo.BuildermaxInputTokens(Long maxInputTokens)Maximum input context window size in tokens for this model. final ModelInfo.BuildermaxInputTokens(Long maxInputTokens)Alias for Builder.maxInputTokens. final ModelInfo.BuildermaxInputTokens(Optional<Long> maxInputTokens)Alias for calling Builder.maxInputTokens with maxInputTokens.orElse(null).final ModelInfo.BuildermaxInputTokens(JsonField<Long> maxInputTokens)Sets Builder.maxInputTokens to an arbitrary JSON value. final ModelInfo.BuildermaxTokens(Long maxTokens)Maximum value for the max_tokensparameter when using this model.final ModelInfo.BuildermaxTokens(Long maxTokens)Alias for Builder.maxTokens. final ModelInfo.BuildermaxTokens(Optional<Long> maxTokens)Alias for calling Builder.maxTokens with maxTokens.orElse(null).final ModelInfo.BuildermaxTokens(JsonField<Long> maxTokens)Sets Builder.maxTokens to an arbitrary JSON value. final ModelInfo.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final ModelInfo.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ModelInfo.BuilderputAdditionalProperty(String key, JsonValue value)final ModelInfo.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ModelInfo.BuilderremoveAdditionalProperty(String key)final ModelInfo.BuilderremoveAllAdditionalProperties(Set<String> keys)final ModelInfobuild()Returns an immutable instance of ModelInfo. -
-
Method Detail
-
id
final ModelInfo.Builder id(String id)
Unique model identifier.
-
id
final ModelInfo.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
capabilities
final ModelInfo.Builder capabilities(ModelCapabilities capabilities)
Model capability information.
-
capabilities
final ModelInfo.Builder capabilities(Optional<ModelCapabilities> capabilities)
Alias for calling Builder.capabilities with
capabilities.orElse(null).
-
capabilities
final ModelInfo.Builder capabilities(JsonField<ModelCapabilities> capabilities)
Sets Builder.capabilities to an arbitrary JSON value.
You should usually call Builder.capabilities with a well-typed ModelCapabilities value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final ModelInfo.Builder createdAt(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.
-
createdAt
final ModelInfo.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
displayName
final ModelInfo.Builder displayName(String displayName)
A human-readable name for the model.
-
displayName
final ModelInfo.Builder displayName(JsonField<String> displayName)
Sets Builder.displayName to an arbitrary JSON value.
You should usually call Builder.displayName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxInputTokens
final ModelInfo.Builder maxInputTokens(Long maxInputTokens)
Maximum input context window size in tokens for this model.
-
maxInputTokens
final ModelInfo.Builder maxInputTokens(Long maxInputTokens)
Alias for Builder.maxInputTokens.
This unboxed primitive overload exists for backwards compatibility.
-
maxInputTokens
final ModelInfo.Builder maxInputTokens(Optional<Long> maxInputTokens)
Alias for calling Builder.maxInputTokens with
maxInputTokens.orElse(null).
-
maxInputTokens
final ModelInfo.Builder maxInputTokens(JsonField<Long> maxInputTokens)
Sets Builder.maxInputTokens to an arbitrary JSON value.
You should usually call Builder.maxInputTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxTokens
final ModelInfo.Builder maxTokens(Long maxTokens)
Maximum value for the
max_tokensparameter when using this model.
-
maxTokens
final ModelInfo.Builder maxTokens(Long maxTokens)
Alias for Builder.maxTokens.
This unboxed primitive overload exists for backwards compatibility.
-
maxTokens
final ModelInfo.Builder maxTokens(Optional<Long> maxTokens)
Alias for calling Builder.maxTokens with
maxTokens.orElse(null).
-
maxTokens
final ModelInfo.Builder maxTokens(JsonField<Long> maxTokens)
Sets Builder.maxTokens to an arbitrary JSON value.
You should usually call Builder.maxTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ModelInfo.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("model")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ModelInfo.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ModelInfo.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ModelInfo.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ModelInfo.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ModelInfo.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-