getFormattedChat method

  1. @override
Future<String?> getFormattedChat(
  1. double contextId, {
  2. required List<RoleContent> messages,
  3. String? chatTemplate,
})
override

Implementation

@override
Future<String?> getFormattedChat(double contextId,
    {required List<RoleContent> messages, String? chatTemplate}) async {
  return await methodChannel.invokeMethod<String>("getFormattedChat", {
    "contextId": contextId,
    "messages": messages.map((item) => item.toMap()).toList(),
    "chatTemplate": chatTemplate
  });
}