Expand description
The providers lev setup can configure, and how each one is configured.
This table is what keeps the wizard a pick-list rather than a fixed march
through every provider (asking for four API keys whether or not the user
has them) ending in a free-text default_provider with no validation -
where a typo produces a config that only fails at the first agent run. The
wizard shows the table as a pick-list, and the default-provider choice is a
radio over what was actually configured.
Everything a provider needs to differ by lives here as data, so adding one is a table entry rather than another branch in the wizard.
Structs§
- Provider
- One configurable provider.
Enums§
- Credential
- What a provider needs from the user.
Constants§
- DEFAULT_
OLLAMA_ URL - Ollama’s default endpoint, and the value the wizard treats as “unset” so a user who leaves it alone gets the built-in default rather than a pinned copy of it in their config.
- OLLAMA_
MAX_ CONCURRENT_ INFERENCES - Local inference realistically serves one model at a time, so the default concurrency for an Ollama-first setup is 1 rather than the usual 8: eight concurrent requests against one Ollama instance queue and thrash rather than going faster.
Functions§
- is_
configured - Whether a provider counts as configured in this config: it has a credential, or it needs none and is switched on.
- providers
- Every provider the wizard offers, in the order it offers them.
- redact
- Redact a credential for display.
- set_
credential - Write a provider’s credential into a config.
Noneclears it. - stored_
credential - Read a provider’s currently-configured credential out of a config.