Chat
Ollama chat client
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();
Operations
New
Constructor
New(model:String)
Parameters
Name | Type | Description |
---|---|---|
model | String | model name (i.e. llama3, llava) |
Send
Chat response from the model given an input
method : public : Send(message:String) ~ String
Parameters
Name | Type | Description |
---|---|---|
message | String | chat message |
Return
Type | Description |
---|---|
String | chat response |