Understand Vexor configuration precedence
mainVexor resolves configuration using the following priority (highest to lowest):
- Explicit function arguments (e.g.,
provider,model,api_key) - Per-call override via
config=...parameter - In-memory runtime config set by
set_config_json(...) - Environment overrides (e.g.,
VEXOR_CONFIG_JSON,OPENAI_API_KEY) - The nearest project
.vexor/config.json - Global
~/.vexor/config.json - Built-in defaults
To ignore on-disk configuration files in a library context, pass use_config=False and provide explicit arguments or a config dict.