pub fn resolve_provider_credential( provider: &str, auth: &Auth, cli_api_key: Option<String>, custom_providers: &BTreeMap<String, CustomProviderConfig>, ) -> Result<Option<ProviderCredential>>