Documentation
¶
Overview ¶
Package ollama provides an llm.Provider backed by a local Ollama server's chat API. It is a thin hand-written client over net/http; it pulls in no third-party deps and lives out of the core so the console binary does not link it (it ships as the console-plugin-ollama executable).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ollama ¶
Ollama is an llm.Provider backed by a local Ollama server's chat API.
func New ¶
New constructs an Ollama provider. No API key is required. Defaults: Model "llama3.1", BaseURL from OLLAMA_HOST else "http://localhost:11434", and a 120s HTTP client.
type Option ¶
type Option func(*Ollama)
Option configures an Ollama provider in New.
func WithBaseURL ¶
WithBaseURL overrides the server base URL (e.g. to point at a test server).
func WithHTTPClient ¶
WithHTTPClient sets the HTTP client used for requests.