Versions in this module Expand all Collapse all v0 v0.11.1 Aug 10, 2026 v0.11.0 Aug 10, 2026 v0.10.2 Aug 10, 2026 v0.10.1 Aug 10, 2026 v0.10.0 Aug 10, 2026 v0.9.2 Aug 9, 2026 v0.9.1 Aug 9, 2026 v0.9.0 Aug 9, 2026 v0.7.1 Aug 9, 2026 v0.7.0 Aug 9, 2026 Changes in this version + const EnvAPIKey + const EnvFireworksKey + const EnvFireworksModel + const EnvFireworksURL + const EnvGCPSAKey + const EnvGeminiKey + const EnvGrokKey + const EnvOpenAIKey + const EnvProvider + var ErrKeyInvalid = errors.New("key recently rejected by the vendor") + func APIKeyFromEnv() string + func ByokVendors() []string + func ConfiguredVendors() []string + func EffectiveModel(s string) string + func HasGeminiCreds() bool + func IsContextOverflow(err error) bool + func LookupServable(label string) (string, bool) + func ResolveAlias(s string) string + func SanitizeModelID(id string) string + func SanitizeResponse(resp *wire.Response) + func SetDefaultVendor(v string) + func SetModels(planner, reviewer, standard string, classify ...string) + type Anthropic = anthropic.Anthropic + func NewAnthropic(apiKey string) *Anthropic + type ByokError struct + Auth bool + Err error + Vendor string + func AsByokError(err error) *ByokError + func (e *ByokError) Error() string + func (e *ByokError) Unwrap() error + type ByokKeys interface + Key func(ctx context.Context, org, user, vendor string) (key, version string, err error) + MarkInvalid func(org, user, vendor string) + type CapabilityError struct + Capability string + Model string + func AsCapabilityError(err error) *CapabilityError + func (e *CapabilityError) Error() string + type ContextOverflowError = provcore.ContextOverflowError + type CreditsExhaustedError struct + Vendor string + func AsCreditsExhausted(err error) *CreditsExhaustedError + func (e *CreditsExhaustedError) Error() string + type Fireworks struct + func NewFireworks(baseURL, apiKey, model string) *Fireworks + func (f *Fireworks) Complete(ctx context.Context, r wire.Request) (wire.Response, error) + func (f *Fireworks) Model() string + func (f *Fireworks) Stream(ctx context.Context, r wire.Request, h wire.StreamHandler) (wire.Response, error) + type Gemini = gemini.Gemini + func NewGemini(apiKey string) *Gemini + func NewGeminiVertex(serviceAccountJSON []byte, project, location string) *Gemini + type Grok = openai.Grok + func NewGrok(apiKey string) *Grok + type Hybrid struct + func NewHybrid(strong StrongTiers, cheapURL, cheapKey, cheapModel string) *Hybrid + func (h *Hybrid) Complete(ctx context.Context, req wire.Request) (wire.Response, error) + func (h *Hybrid) SetByok(k ByokKeys) + func (h *Hybrid) Stream(ctx context.Context, req wire.Request, sh wire.StreamHandler) (wire.Response, error) + func (h *Hybrid) WebFetch(ctx context.Context, url string) (string, wire.Response, error) + func (h *Hybrid) WebSearch(ctx context.Context, query string) (string, wire.Response, error) + type LaneRequestError = compat.LaneRequestError + type ModelProvider interface + Complete func(ctx context.Context, r wire.Request) (wire.Response, error) + func NewFromEnv() (ModelProvider, error) + type ModelSpec struct + Desc string + Group string + ID string + Label string + Name string + PDF bool + Pinnable bool + Reasoning bool + Vision bool + Window int + type OpenAI = openai.OpenAI + func NewOpenAI(apiKey string) *OpenAI + type RoleModel struct + ID string + Label string + Role string + Vision bool + Window int + func ConfiguredModels() []RoleModel + type ServableModel struct + Byok bool + Desc string + Group string + Label string + Name string + PDF bool + Pinnable bool + Reasoning bool + Vendor string + Vision bool + Window int + func ServableModelsFor(who identity.Info) []ServableModel + type Streamer interface + Stream func(ctx context.Context, r wire.Request, h wire.StreamHandler) (wire.Response, error) + type StrongProvider interface + Model func() string + type StrongTier struct + Provider StrongProvider + Vendor string + type StrongTiers map[string]StrongTier + func (st StrongTiers) StrongTierFor(vendor string) StrongTier + type WebFetcher interface + WebFetch func(ctx context.Context, url string) (string, wire.Response, error) + type WebSearcher interface + WebSearch func(ctx context.Context, query string) (string, wire.Response, error)