OpenAIChatCompletionChoiceMessageModel constructor

const OpenAIChatCompletionChoiceMessageModel({
  1. required OpenAIChatMessageRole role,
  2. required String content,
})

This represents the message of the OpenAIChatCompletionChoiceModel model of the OpenAI API, which is used and get returned while using the OpenAIChat methods.

Implementation

const OpenAIChatCompletionChoiceMessageModel({
  required this.role,
  required this.content,
});