Package com.openai.models.completions
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
Modifier and Type Method Description final Optional<List<Long>>textOffset()final Optional<List<Double>>tokenLogprobs()final Optional<List<String>>tokens()final Optional<List<CompletionChoice.Logprobs.TopLogprob>>topLogprobs()final JsonField<List<Long>>_textOffset()Returns the raw JSON value of textOffset. final JsonField<List<Double>>_tokenLogprobs()Returns the raw JSON value of tokenLogprobs. final JsonField<List<String>>_tokens()Returns the raw JSON value of tokens. final JsonField<List<CompletionChoice.Logprobs.TopLogprob>>_topLogprobs()Returns the raw JSON value of topLogprobs. final Map<String, JsonValue>_additionalProperties()final CompletionChoice.Logprobs.BuildertoBuilder()final CompletionChoice.Logprobsvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CompletionChoice.Logprobs.Builderbuilder()Returns a mutable builder for constructing an instance of Logprobs. -
-
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()
-
builder
final static CompletionChoice.Logprobs.Builder builder()
Returns a mutable builder for constructing an instance of Logprobs.
-
-
-
-