CompletionLogprobs constructor
const
CompletionLogprobs({
- @JsonKey(name: 'text_offset', includeIfNull: false) List<
int> ? textOffset, - @JsonKey(name: 'token_logprobs', includeIfNull: false) List<
double?> ? tokenLogprobs, - @JsonKey(includeIfNull: false) List<
String> ? tokens, - @JsonKey(name: 'top_logprobs', includeIfNull: false) List<
Map< ? topLogprobs,String, double> ?>
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;