INNER CODE UNIT · Python
_is_llm_recovery_marker
pikpikcu/airecon · airecon/tui/app.py:346
def _is_llm_recovery_marker(text: str) -> bool:
lowered = (text or "").lower()
return (
"auto-recovery" in lowered
or "vram crash" in lowered
or "out of memory" in lowered
or "cuda out of memory" in lowered
)
def _is_llm_degraded_active(self) -> bool:
return self._llm_degraded_until > time.monotonic()
def _should_show_llm_degraded(self, llm_ok: bool) -> bool:
return bool(
llm_ok and self._processing and self._is_llm_degraded_active()
)
def _mark_llm_degraded(self, reason: str = "") -> None: