Skip to main content

resolve

Function resolve 

Source
pub fn resolve(config: &mut Config, store: &AuthStore) -> Vec<KeySource>
Expand description

Fill in keys the config left unset, and report where each one came from.

Returns one KeySource per entry in config.llm, positionally - including the disabled ones, so a caller numbering providers by file position and a caller numbering by chain position both index correctly.

Disabled entries are skipped, matching every other pass over the provider list: ${VAR} expansion and field validation already leave a parked entry alone, and looking a key up for one would report a missing credential for a provider that is never contacted.