v2025.6.2
All Bundles

Completion

Ollama model interactions

prompt := "What number is this?";
file := System.IO.Filesystem.File->New("../gemini/thirteen.png");
Completion->Generate("llava", prompt, file)->PrintLine();

Operations

Generate

Generates a response from the model given an input

function : Generate(model:String, prompt:String) ~ String

Parameters

NameTypeDescription
modelStringmodel name (i.e. llama3, llava)
promptStringprompt

Generate

Generates a response from the model given an input

function : Generate(model:String, prompt:String, format:String) ~ String

Parameters

NameTypeDescription
modelStringmodel name (i.e. llama3, llava)
promptStringprompt
formatStringoutput format

Generate

Generates a response from the model given an input

function : Generate(model:String, prompt:String, image:File) ~ String

Parameters

NameTypeDescription
modelStringmodel name (i.e. llama3, llava)
promptStringprompt
imageFileimage file

Generate

Generates a response from the model given an input

function : Generate(model:String, prompt:String, images:File[]) ~ String

Parameters

NameTypeDescription
modelStringmodel name (i.e. llama3, llava)
promptStringprompt
imagesFile[]image images