toGptMap property

Map<String, dynamic> get toGptMap

Implementation

Map<String, dynamic> get toGptMap {
  return {
    'role': sender == SenderType.user ? 'user' : 'assistant',
    'content': text,
  };
}