(name: str, default: bool = False)
| 339 | |
| 340 | |
| 341 | def _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 | |
| 346 | def _should_fallback_local_llm_to_cpu_on_oom() -> bool: |
no test coverage detected