Skip to main content

carregar_chaves_api

Function carregar_chaves_api 

Source
pub fn carregar_chaves_api() -> Result<Vec<String>>
Expand description

Loads API keys using the four-layer precedence hierarchy:

  1. CONTEXT7_API_KEYS runtime env var (highest priority)
  2. XDG config ~/.config/context7/config.toml
  3. .env file in the current working directory
  4. CONTEXT7_API_KEYS compile-time env var (lowest priority)

Returns an error only if NO layer provides valid keys.