v2025.7.0
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

Return

TypeDescription
Stringquery response

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

Return

TypeDescription
Stringquery response

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

Return

TypeDescription
Stringquery response

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

Return

TypeDescription
Stringquery response