Choice constructor
Choice({
- String? text,
- Map? message,
- required int index,
- dynamic logprobs,
- String? finishReason,
- 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,
});