generateText
suspend fun generateText(prompt: String, options: GenerationOptions = GenerationOptions.DEFAULT): GenerationResult(source)
Runs generate to completion and returns the generated text.
Throws
for the failure a TokenEvent.Error would report.
if the engine is closed.
suspend fun generateText(prompt: String, images: List<LlamaImage>, options: GenerationOptions = GenerationOptions.DEFAULT): GenerationResult(source)
Runs the multimodal generate (with images) to completion and returns the generated text.
Throws
for the failure a TokenEvent.Error would report.
if the engine is closed.