All Bundles

Completion

Ollama model interactions

Derived from: EndPoint

Operations

Code example:

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

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

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

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

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
imagesFileimage images