OpenAIChatCompletionChoiceModel constructor

const OpenAIChatCompletionChoiceModel({
  1. required int index,
  2. required OpenAIChatCompletionChoiceMessageModel message,
  3. required String? finishReason,
})

This class represents a choice of the OpenAIChatCompletionModel model of the OpenAI API, which is used and get returned while using the OpenAIChat methods.

Implementation

const OpenAIChatCompletionChoiceModel({
  required this.index,
  required this.message,
  required this.finishReason,
});