Ollama chat client
Derived from: EndPoint
OperationsCode example:
chat := Chat->New("llama3");
chat->Send("How many people like in San Pablo, CA?")->PrintLine();
chat->Send("How of the population identify as Latino??")->PrintLine();
chat->Send("Thanks, what are the major landmarks?")->PrintLine();
chat->Send("Goodbye?")->PrintLine();
Constructor
New(model:String)
Name | Type | Description |
---|---|---|
model | String | model name (i.e. llama3, llava) |
Chat response from the model given an input
method : public : Send(message:String) ~ String
Name | Type | Description |
---|---|---|
message | String | chat message |
Type | Description |
---|---|
String | chat response |
Chat response from the model given an input
method : public : Send(message:String, image:File) ~ String
Name | Type | Description |
---|---|---|
message | String | chat message |
image | File | image file |
Type | Description |
---|---|
String | chat response |
Chat response from the model given an input
method : public : Send(message:String, images:File[]) ~ String
Name | Type | Description |
---|---|---|
message | String | chat query |
images | File | image files |
Type | Description |
---|---|
String | chat response |