CompletionLogprobs constructor

const CompletionLogprobs({
  1. @JsonKey(name: 'text_offset', includeIfNull: false) List<int>? textOffset,
  2. @JsonKey(name: 'token_logprobs', includeIfNull: false) List<double?>? tokenLogprobs,
  3. @JsonKey(includeIfNull: false) List<String>? tokens,
  4. @JsonKey(name: 'top_logprobs', includeIfNull: false) List<Map<String, double>?>? topLogprobs,
})

Factory constructor for CompletionLogprobs

Implementation

const factory CompletionLogprobs({
  /// The offset of the token from the beginning of the prompt.
  @JsonKey(name: 'text_offset', includeIfNull: false) List<int>? textOffset,

  /// The log probabilities of tokens in the completion.
  @JsonKey(name: 'token_logprobs', includeIfNull: false)
  List<double?>? tokenLogprobs,

  /// The tokens generated by the model converted back to text.
  @JsonKey(includeIfNull: false) List<String>? tokens,

  /// The log probabilities of the `logprobs` most likely tokens.
  @JsonKey(name: 'top_logprobs', includeIfNull: false)
  List<Map<String, double>?>? topLogprobs,
}) = _CompletionLogprobs;