ENTROPIC_* environment variable override implementation.
More...
Go to the source code of this file.
|
| namespace | entropic |
| | Activate model on GPU (WARM → ACTIVE).
|
| |
ENTROPIC_* environment variable override implementation.
- Version
- 1.8.1
Definition in file env_overrides.cpp.
◆ apply_env()
template<typename Setter >
| static void entropic::config::apply_env |
( |
const char * |
key, |
|
|
Setter |
setter |
|
) |
| |
|
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.
- Parameters
-
| key | Environment variable name. |
| setter | Invoked with the value when present. @utility |
- Version
- 2.3.7
Definition at line 55 of file env_overrides.cpp.
◆ apply_env_overrides()
| 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
- Parameters
-
| [in,out] | config | Config to override. |
- Version
- 1.8.1
- Parameters
-
| [in,out] | config | Config to override. |
- Version
- 2.3.7 @utility
Definition at line 68 of file env_overrides.cpp.
◆ get_env()
| static std::string entropic::config::get_env |
( |
const char * |
name | ) |
|
|
static |
Get environment variable value or empty string.
- Parameters
-
- Returns
- Value string, or empty if not set.
Definition at line 23 of file env_overrides.cpp.
◆ parse_bool()
| static bool entropic::config::parse_bool |
( |
const std::string & |
val | ) |
|
|
static |
Parse a boolean from string (true/false/yes/no/1/0).
- Parameters
-
- Returns
- Parsed boolean.
- Version
- 1.8.1 @utility
Definition at line 36 of file env_overrides.cpp.
◆ s_log