Class CompletionChoice.Logprobs
-
- All Implemented Interfaces:
public final class CompletionChoice.Logprobs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCompletionChoice.Logprobs.BuilderA builder for Logprobs.
public final classCompletionChoice.Logprobs.TopLogprob
-
Method Summary
-
-
Method Detail
-
textOffset
final Optional<List<Long>> textOffset()
-
tokenLogprobs
final Optional<List<Double>> tokenLogprobs()
-
topLogprobs
final Optional<List<CompletionChoice.Logprobs.TopLogprob>> topLogprobs()
-
_textOffset
final JsonField<List<Long>> _textOffset()
Returns the raw JSON value of textOffset.
Unlike textOffset, this method doesn't throw if the JSON field has an unexpected type.
-
_tokenLogprobs
final JsonField<List<Double>> _tokenLogprobs()
Returns the raw JSON value of tokenLogprobs.
Unlike tokenLogprobs, this method doesn't throw if the JSON field has an unexpected type.
-
_tokens
final JsonField<List<String>> _tokens()
Returns the raw JSON value of tokens.
Unlike tokens, this method doesn't throw if the JSON field has an unexpected type.
-
_topLogprobs
final JsonField<List<CompletionChoice.Logprobs.TopLogprob>> _topLogprobs()
Returns the raw JSON value of topLogprobs.
Unlike topLogprobs, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final CompletionChoice.Logprobs.Builder toBuilder()
-
validate
final CompletionChoice.Logprobs 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 CompletionChoice.Logprobs.Builder builder()
Returns a mutable builder for constructing an instance of Logprobs.
-
-
-
-