mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-18 10:02:16 +00:00
Update notification service
This commit is contained in:
@@ -147,8 +147,8 @@ const AI_PROVIDERS = [
|
|||||||
{
|
{
|
||||||
value: "ollama",
|
value: "ollama",
|
||||||
label: "Ollama (Local)",
|
label: "Ollama (Local)",
|
||||||
model: "llama3.2",
|
model: "",
|
||||||
description: "100% local execution. No costs, total privacy, no internet required.",
|
description: "Uses models available on your Ollama server. 100% local, no costs, total privacy.",
|
||||||
keyUrl: "",
|
keyUrl: "",
|
||||||
icon: "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/ollama.webp",
|
icon: "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/ollama.webp",
|
||||||
iconLight: "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/ollama-light.webp"
|
iconLight: "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/ollama-light.webp"
|
||||||
|
|||||||
@@ -2151,7 +2151,8 @@ class PollingCollector:
|
|||||||
for fp, ts in cursor.fetchall():
|
for fp, ts in cursor.fetchall():
|
||||||
error_key = fp.replace('health_', '', 1)
|
error_key = fp.replace('health_', '', 1)
|
||||||
self._last_notified[error_key] = ts
|
self._last_notified[error_key] = ts
|
||||||
self._known_errors.add(error_key)
|
# _known_errors is a dict (not a set), store minimal metadata
|
||||||
|
self._known_errors[error_key] = {'error_key': error_key, 'first_seen': ts}
|
||||||
conn.close()
|
conn.close()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"[PollingCollector] Failed to load last_notified: {e}")
|
print(f"[PollingCollector] Failed to load last_notified: {e}")
|
||||||
|
|||||||
Reference in New Issue
Block a user