Documentation
¶
Overview ¶
Package providers holds the catalogue of well-known LLM providers and the logic to connect one, shared by the TUI picker and the CLI so both stay in sync.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Activate ¶
Activate records credentials (when a key is given), makes the provider the active one, and points the default model at it when the current one doesn't belong to it. It mutates cfg but does not persist — the caller saves.
func Connected ¶
Connected reports whether a provider already has a usable credential (an API key in config, a set key-env, or being a local provider that needs none).
func FetchModels ¶
FetchModels queries a provider's /models endpoint for the model ids it offers, the same way the dashboard does. This surfaces models a custom or dynamic provider exposes even when they are not listed statically in the config.