Documentation
¶
Overview ¶
Package ollama provides a generative chat bot.
Download Ollama server here: <https://ollama.com/download/mac>. To run the model execute `ollama run ollama3.2` in terminal. API primitives are taken from <https://dshills.medium.com/go-ollama-simple-local-ai-3a89be4bfbaf>.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ollama ¶
type Ollama struct {
// contains filtered or unexported fields
}
type Response ¶
type Response struct { Model string `json:"model"` CreatedAt time.Time `json:"created_at"` Message Message `json:"message"` Done bool `json:"done"` TotalDuration int64 `json:"total_duration"` LoadDuration int `json:"load_duration"` PromptEvalCount int `json:"prompt_eval_count"` PromptEvalDuration int `json:"prompt_eval_duration"` EvalCount int `json:"eval_count"` EvalDuration int64 `json:"eval_duration"` }
Click to show internal directories.
Click to hide internal directories.