getResponse method

  1. @override
Future<String?> getResponse({
  1. required String prompt,
})
override

Implementation

@override
Future<String?> getResponse({required String prompt}) async {
  if (llmInference != null) {
    return await promiseToFuture<String>(llmInference!.generateResponse(prompt, null));
  } else {
    throw Exception("Gemma is not initialized yet");
  }
}