config¶
config
¶
ApiConfig
¶
AppConfig
¶
Bases: BaseModel
Client-side behavior settings (CONFIG.APP).
Config
¶
Bases: BaseModel
The nnsight config, exposed as the module-level singleton CONFIG.
Loaded once at import with the precedence shipped defaults < user config file
< environment. The user file lives at $XDG_CONFIG_HOME/nnsight/config.yaml
(or NNSIGHT_CONFIG if set); save writes the current values back to
it. Environment overrides: NDIF_HOST, NDIF_API_KEY, NNSIGHT_DEBUG.
set_default_api_key
¶
Set the NDIF API key and persist it to the user config file.