atlasbot: skip hottest facts for hardware class
This commit is contained in:
parent
93532c2622
commit
1837fec215
@ -1016,11 +1016,15 @@ def _extract_hottest_facts(lines: list[str], question: str) -> list[str]:
|
||||
if not lines:
|
||||
return []
|
||||
lowered = question.lower()
|
||||
if "hardware" in lowered or "class" in lowered:
|
||||
return []
|
||||
if not any(
|
||||
term in lowered
|
||||
for term in ("hottest", "hot", "highest", "lowest", "most", "top", "peak", "loaded", "load", "busy")
|
||||
):
|
||||
return []
|
||||
if "node" not in lowered and "nodes" not in lowered:
|
||||
return []
|
||||
line = next((item for item in lines if item.lower().startswith("hottest:")), "")
|
||||
if not line:
|
||||
return []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user