Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultOllamaModel = "qwen2.5-coder:3b"
DefaultOllamaModel is pulled when --llm-model is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Mode string
Model string
Endpoint string
Timeout time.Duration
PullTimeout time.Duration
APIKey string
Logger *slog.Logger
}
Config selects an LLM adapter.
type Noop ¶
type Noop struct{}
Noop never classifies or rewrites.
func (Noop) Classify ¶
func (Noop) Classify(context.Context, ports.ClassifyIn) (ports.ClassifyOut, error)
type Ollama ¶
type Ollama struct {
// contains filtered or unexported fields
}
Ollama talks to a local Ollama HTTP API. If Endpoint is set, it only connects (config mode). If Endpoint is empty, it reuses :11434, otherwise a single blot-managed server on :12434. A previous managed process (and its llama-server children) is stopped before a new one is started.
func (*Ollama) Classify ¶
func (o *Ollama) Classify(ctx context.Context, in ports.ClassifyIn) (ports.ClassifyOut, error)
Click to show internal directories.
Click to hide internal directories.