Documentation
¶
Overview ¶
Package provider resolves an LLM backend: the server's providers for a worker (Session, Judge), and one Anthropic-format endpoint from the environment for the local `whetstone` CLI (Resolve).
Index ¶
Constants ¶
View Source
const ( APIKeyEnv = "ANTHROPIC_API_KEY" AuthTokenEnv = "ANTHROPIC_AUTH_TOKEN" BaseURLEnv = "ANTHROPIC_BASE_URL" // ModelEnv is comma-separated, most capable first: the first entry serves // every judge call and the panel's primary member, the rest are the panel's // floor members. One list rather than a strong/fast pair, which could be // half-set — a panel with one working member and one that 404s is not an // error but a complete run that scores and can never release anything. ModelEnv = "LLM_MODEL" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Kind Kind
Detail string
// BaseURL is the panel's gateway as much as the judge's. Empty is
// Anthropic's own API.
BaseURL string
Key string
// AuthStyle is inferred from which credential was set rather than
// configured: a bearer token is only ever presented as a bearer token.
AuthStyle api.AuthStyle
// Models is ModelEnv, split and trimmed. Empty means the shipped defaults.
Models []string
}
Config is data only: nothing dials anything until Gateway is called.
func (Config) PanelModels ¶
PanelModels is what the panel asks for, empty for the shipped default. A model named only to cheapen the judge on Anthropic's API keeps the panel.
Click to show internal directories.
Click to hide internal directories.