sendPromptWithImages method

Future<String> sendPromptWithImages(
  1. String prompt,
  2. List<LlamaImage> images, {
  3. Object? scope,
})

Implementation

Future<String> sendPromptWithImages(String prompt, List<LlamaImage> images, {Object? scope}) async {
  if (loadCommand.contextParams.embeddings) {
    throw StateError("Configured for embeddings only.");
  }
  final queuedPrompt = _QueuedPrompt(prompt, scope, images: images);
  _promptQueue.add(queuedPrompt);
  if (!_isProcessingQueue) _processNextPrompt();
  return queuedPrompt.idCompleter.future;
}