Choice constructor

Choice({
  1. String? text,
  2. Map? message,
  3. required int index,
  4. dynamic logprobs,
  5. String? finishReason,
  6. MessageType messageType = MessageType.message,
})

Creates a completion choice.

Implementation

Choice({
  this.text,
  this.message,
  required this.index,
  this.logprobs,
  this.finishReason,
  this.messageType = MessageType.message,
});