getFormattedChat method
Future<String?>
getFormattedChat(
- double contextId, {
- required List<
RoleContent> messages, - 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
});
}