OpenAIChatCompletionChoiceModel constructor
const
OpenAIChatCompletionChoiceModel({
- required dynamic index,
- required OpenAIChatCompletionChoiceMessageModel message,
- 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,
});