ändrar sattus ollama

This commit is contained in:
larssand
2026-07-06 11:31:06 +02:00
parent b7f49214cb
commit 2f208c91ca
4 changed files with 15 additions and 3 deletions

View File

@@ -432,7 +432,13 @@ def build_status(
profile_suggestions = apply_profile_advice(profile_suggestions, advice)
profile_advisor_status = {"enabled": True, "status": "ok" if advice else "empty", "profiles_returned": len(advice), "model": str(runtime_values.get("profile_advisor_model", "") or "qwen3:8b")}
except Exception as exc:
profile_advisor_status = {"enabled": True, "status": "error", "error": str(exc), "model": str(runtime_values.get("profile_advisor_model", "") or "qwen3:8b")}
profile_advisor_status = {
"enabled": True,
"status": "heuristic_fallback",
"error": str(exc),
"model": str(runtime_values.get("profile_advisor_model", "") or "qwen3:8b"),
"candidates": len(advisor_candidates),
}
for suggestion in profile_suggestions:
suggestion.setdefault("profile_advisor", {"status": "heuristic", "error": str(exc)})
intel_ips = sorted(