MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _env_flag

Function _env_flag

agents/master-coordinator/scripts/llm_parser.py:341–343  ·  view source on GitHub ↗
(name: str, default: bool = False)

Source from the content-addressed store, hash-verified

339
340
341def _env_flag(name: str, default: bool = False) -> bool:
342 raw = os.environ.get(name, "true" if default else "false").strip().lower()
343 return raw in {"1", "true", "yes", "on"}
344
345
346def _should_fallback_local_llm_to_cpu_on_oom() -> bool:

Calls 1

getMethod · 0.80

Tested by

no test coverage detected