Ollama model interactions
Derived from: EndPoint
OperationsCode example:
prompt := "What number is this?";
file := System.IO.Filesystem.File->New("../gemini/thirteen.png");
Completion->Generate("llava", prompt, file)->PrintLine();
Generates a response from the model given an input
function : Generate(model:String, prompt:String) ~ String
Name | Type | Description |
---|---|---|
model | String | model name (i.e. llama3, llava) |
prompt | String | prompt |
Generates a response from the model given an input
function : Generate(model:String, prompt:String, format:String) ~ String
Name | Type | Description |
---|---|---|
model | String | model name (i.e. llama3, llava) |
prompt | String | prompt |
format | String | output format |
Generates a response from the model given an input
function : Generate(model:String, prompt:String, image:File) ~ String
Name | Type | Description |
---|---|---|
model | String | model name (i.e. llama3, llava) |
prompt | String | prompt |
image | File | image file |
Generates a response from the model given an input
function : Generate(model:String, prompt:String, images:File[]) ~ String
Name | Type | Description |
---|---|---|
model | String | model name (i.e. llama3, llava) |
prompt | String | prompt |
images | File | image images |