generate method

Future<List<String>> generate({
  1. required String prompt,
  2. double temperature = 0,
  3. int seed = 0,
  4. int topK = 3,
  5. int candidateCount = 1,
  6. int maxOutputTokens = 256,
})

Generates a list of strings based on a prompt using the on-device model.

Implementation

Future<List<String>> generate({
  required String prompt,
  double temperature = 0,
  int seed = 0,
  int topK = 3,
  int candidateCount = 1,
  int maxOutputTokens = 256,
}) {
  throw UnimplementedError('generate() has not been implemented.');
}