CompletionChoice constructor

const CompletionChoice({
  1. String? text,
  2. int? index,
  3. @JsonKey(name: "logprobs") LogProb? logProbs,
  4. @JsonKey(name: "finish_reason") String? finishReason,
})

The generated result for from completion prompt.

Implementation

const factory CompletionChoice({
  final String? text,
  final int? index,
  @JsonKey(name: "logprobs") final LogProb? logProbs,
  @JsonKey(name: "finish_reason") final String? finishReason,
}) = _CompletionChoice;