Class CompletionChoice.Logprobs.Builder
-
- All Implemented Interfaces:
public final class CompletionChoice.Logprobs.Builder
A builder for Logprobs.
-
-
Method Summary
-
-
Method Detail
-
textOffset
final CompletionChoice.Logprobs.Builder textOffset(List<Long> textOffset)
-
textOffset
final CompletionChoice.Logprobs.Builder textOffset(JsonField<List<Long>> textOffset)
Sets Builder.textOffset to an arbitrary JSON value.
You should usually call Builder.textOffset with a well-typed
List<Long>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTextOffset
final CompletionChoice.Logprobs.Builder addTextOffset(Long textOffset)
Adds a single Long to Builder.textOffset.
-
tokenLogprobs
final CompletionChoice.Logprobs.Builder tokenLogprobs(List<Double> tokenLogprobs)
-
tokenLogprobs
final CompletionChoice.Logprobs.Builder tokenLogprobs(JsonField<List<Double>> tokenLogprobs)
Sets Builder.tokenLogprobs to an arbitrary JSON value.
You should usually call Builder.tokenLogprobs with a well-typed
List<Double>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTokenLogprob
final CompletionChoice.Logprobs.Builder addTokenLogprob(Double tokenLogprob)
Adds a single Double to tokenLogprobs.
-
tokens
final CompletionChoice.Logprobs.Builder tokens(List<String> tokens)
-
tokens
final CompletionChoice.Logprobs.Builder tokens(JsonField<List<String>> tokens)
Sets Builder.tokens to an arbitrary JSON value.
You should usually call Builder.tokens with a well-typed
List<String>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addToken
final CompletionChoice.Logprobs.Builder addToken(String token)
-
topLogprobs
final CompletionChoice.Logprobs.Builder topLogprobs(List<CompletionChoice.Logprobs.TopLogprob> topLogprobs)
-
topLogprobs
final CompletionChoice.Logprobs.Builder topLogprobs(JsonField<List<CompletionChoice.Logprobs.TopLogprob>> topLogprobs)
Sets Builder.topLogprobs to an arbitrary JSON value.
You should usually call Builder.topLogprobs with a well-typed
List<TopLogprob>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTopLogprob
final CompletionChoice.Logprobs.Builder addTopLogprob(CompletionChoice.Logprobs.TopLogprob topLogprob)
Adds a single TopLogprob to topLogprobs.
-
additionalProperties
final CompletionChoice.Logprobs.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final CompletionChoice.Logprobs.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final CompletionChoice.Logprobs.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final CompletionChoice.Logprobs.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final CompletionChoice.Logprobs.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final CompletionChoice.Logprobs build()
Returns an immutable instance of Logprobs.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-