Skip to main content

load_custom_api_keys

Function load_custom_api_keys 

Source
pub fn load_custom_api_keys(
    providers: &[String],
    mode: AuthCredentialsStoreMode,
) -> Result<BTreeMap<String, String>>
Expand description

Load all custom API keys from secure storage.

This function retrieves API keys for all providers that have keys stored.

§Arguments

  • providers - List of provider names to check for stored keys
  • mode - The storage mode to use

§Returns

A BTreeMap of provider names to their API keys (only includes providers with stored keys)