fix delete och ollama
This commit is contained in:
@@ -774,7 +774,15 @@ def monitor_loop(
|
||||
cached = cached_status_with_error(status_cache_path, mcp)
|
||||
if cached:
|
||||
status = cached
|
||||
status["llm_assessment"] = {"enabled": bool(effective_llm), "status": "cached" if last_llm_text else ("pending" if effective_llm else "disabled"), "generated_at": last_llm_at, "text": last_llm_text or ""}
|
||||
status["llm_assessment"] = {
|
||||
"enabled": bool(effective_llm),
|
||||
"status": "cached" if last_llm_text else ("pending" if effective_llm else "disabled"),
|
||||
"generated_at": last_llm_at,
|
||||
"started_at": int(time.time()) if effective_llm and not last_llm_text else 0,
|
||||
"model": effective_model or "",
|
||||
"timeout_seconds": effective_llm_timeout if effective_llm else 0,
|
||||
"text": last_llm_text or "",
|
||||
}
|
||||
if effective_llm:
|
||||
if status_cache_path and isinstance(mcp, dict) and mcp.get("status") not in {"error", "refreshing"}:
|
||||
StatusSnapshotStore(status_cache_path).save("last_good", status)
|
||||
|
||||
Reference in New Issue
Block a user