Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvModel = "OLLAMA_MODEL" EnvBaseURL = "OLLAMA_BASE_URL" DefaultModel = "kimi-k2.7-code:cloud" DefaultBaseURL = "http://127.0.0.1:11434" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model adapts Ollama's /api/chat endpoint to intent.LLM with tool support.
func New ¶
New returns an intent.LLM backed by Ollama. Unset fields are populated from OLLAMA_MODEL and OLLAMA_BASE_URL when present.
type Option ¶
type Option func(*config)
Option configures an Ollama model adapter.
func WithBaseURL ¶
WithBaseURL sets the Ollama server base URL.
func WithModelName ¶
WithModelName sets the Ollama model name.
Click to show internal directories.
Click to hide internal directories.