pub fn resolve_provider( key: &str, overrides: &BTreeMap<String, String>, ) -> Option<(ProviderConfig, &'static str)>
Look up a provider by key and resolve its API key (config override first, then env vars).