Class ChatCompletionTokenLogprob.TopLogprob.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionTokenLogprob.TopLogprob.Builder
-
-
Constructor Summary
Constructors Constructor Description ChatCompletionTokenLogprob.TopLogprob.Builder()
-
Method Summary
-
-
Method Detail
-
token
final ChatCompletionTokenLogprob.TopLogprob.Builder token(String token)
The token.
-
token
final ChatCompletionTokenLogprob.TopLogprob.Builder token(JsonField<String> token)
The token.
-
bytes
final ChatCompletionTokenLogprob.TopLogprob.Builder bytes(List<Long> bytes)
A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be
null
if there is no bytes representation for the token.
-
bytes
final ChatCompletionTokenLogprob.TopLogprob.Builder bytes(Optional<List<Long>> bytes)
A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be
null
if there is no bytes representation for the token.
-
bytes
final ChatCompletionTokenLogprob.TopLogprob.Builder bytes(JsonField<List<Long>> bytes)
A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be
null
if there is no bytes representation for the token.
-
addByte
final ChatCompletionTokenLogprob.TopLogprob.Builder addByte(Long byte_)
A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be
null
if there is no bytes representation for the token.
-
logprob
final ChatCompletionTokenLogprob.TopLogprob.Builder logprob(Double logprob)
The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value
-9999.0
is used to signify that the token is very unlikely.
-
logprob
final ChatCompletionTokenLogprob.TopLogprob.Builder logprob(JsonField<Double> logprob)
The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value
-9999.0
is used to signify that the token is very unlikely.
-
additionalProperties
final ChatCompletionTokenLogprob.TopLogprob.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionTokenLogprob.TopLogprob.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionTokenLogprob.TopLogprob.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionTokenLogprob.TopLogprob.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionTokenLogprob.TopLogprob.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionTokenLogprob.TopLogprob build()
-
-
-
-