Skip to main content

Module env

Module env 

Source
Expand description

Shared environment/config loading.

Precedence (highest to lowest):

  1. Environment variables already set
  2. ~/.llmshim/config.toml

Functionsยง

load_all
Load config and apply to environment. After calling this, std::env::var("OPENAI_API_KEY") etc. will work regardless of which source provided the value.