|
Entropic 2.14.3
Local-first agentic inference engine
|
ENTROPIC_* environment variable override implementation. More...

Go to the source code of this file.
Namespaces | |
| namespace | entropic |
| Activate model on GPU (WARM → ACTIVE). | |
Functions | |
| static std::string | entropic::config::get_env (const char *name) |
| Get environment variable value or empty string. | |
| static bool | entropic::config::parse_bool (const std::string &val) |
| Parse a boolean from string (true/false/yes/no/1/0). | |
| template<typename Setter > | |
| static void | entropic::config::apply_env (const char *key, Setter setter) |
| Apply one ENTROPIC_* override if the env var is set. | |
| static void | entropic::config::apply_mcp_external_env (ParsedConfig &config) |
The mcp.external overrides entropic serve sets (gh#204). | |
| ENTROPIC_EXPORT void | entropic::config::apply_env_overrides (ParsedConfig &config) |
| Apply ENTROPIC_* environment variable overrides. | |
Variables | |
| static auto | s_log = entropic::log::get("config") |
ENTROPIC_* environment variable override implementation.
Definition in file env_overrides.cpp.
|
static |
Apply one ENTROPIC_* override if the env var is set.
Reads key; on a non-empty value logs it and hands it to setter. Collapses the repeated get/check/log/assign block so the dispatcher stays knots-clean.
| key | Environment variable name. |
| setter | Invoked with the value when present. @utility |
Definition at line 55 of file env_overrides.cpp.
| void entropic::config::apply_env_overrides | ( | ParsedConfig & | config | ) |
Apply ENTROPIC_* environment variable overrides.
Variable format: ENTROPIC_{SECTION}__{FIELD} (double underscore). Examples: ENTROPIC_LOG_LEVEL=DEBUG, ENTROPIC_ROUTING__ENABLED=true
| [in,out] | config | Config to override. @req REQ-CFG-001 |
| [in,out] | config | Config to override. |
Definition at line 96 of file env_overrides.cpp.
|
static |
The mcp.external overrides entropic serve sets (gh#204).
ENTROPIC_MCP__EXTERNAL__ENABLED and ENTROPIC_MCP__EXTERNAL__HTTP_PORT. A port that does not parse becomes -1, which the HTTP listener then refuses loudly at configure — never an exception out of the loader.
| config | Config to override. @dg_internal @req REQ-CFG-001 |
Definition at line 74 of file env_overrides.cpp.
Get environment variable value or empty string.
| name | Variable name. |
Definition at line 23 of file env_overrides.cpp.
|
static |
Parse a boolean from string (true/false/yes/no/1/0).
| val | String value. |
Definition at line 36 of file env_overrides.cpp.
|
static |
Definition at line 12 of file env_overrides.cpp.