OpenAIStreamChatCompletionChoiceDeltaModel.fromMap constructor

OpenAIStreamChatCompletionChoiceDeltaModel.fromMap(
  1. Map<String, dynamic> json
)

This contains the role and content of the choice of the chat response.

Implementation

factory OpenAIStreamChatCompletionChoiceDeltaModel.fromMap(
  Map<String, dynamic> json,
) {
  return OpenAIStreamChatCompletionChoiceDeltaModel(
    role: json['role'],
    content: json['content'],
  );
}