diff --git a/app/keystore.py b/app/keystore.py index e2e5355..44c76d6 100644 --- a/app/keystore.py +++ b/app/keystore.py @@ -57,10 +57,10 @@ KEY_REGISTRY: dict[str, dict] = { "pattern": r"^[0-9a-fA-F]{32}$", "example": "32-char hex string (e.g. 5f3c…9a02)", }, - "GEMINI_API_KEY": { - "description": "Google Gemini API key — LLM event analysis / summarization.", - "pattern": r"^AIza[0-9A-Za-z_-]{35}$", - "example": "AIza… (Google API key, 39 chars)", + "NOUS_API_KEY": { + "description": "Nous Portal API key — hourly news summarizer (inference-api.nousresearch.com).", + "pattern": r"^.{16,}$", + "example": "key from https://portal.nousresearch.com (API keys page)", }, "TELEGRAM_TOKEN": { "description": "Telegram bot token — push alert notifications to a channel.", diff --git a/app/static/index.html b/app/static/index.html index d07f1ec..db5725a 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -955,7 +955,7 @@

API Keys

-

Keys used by ingest services (FIRMS, Gemini, Telegram, …). Stored in Postgres, never shown again — only status + last 4 chars.

+

Keys used by ingest services (FIRMS, Nous Portal, Telegram, AIS, …). Stored in Postgres, never shown again — only status + last 4 chars.

@@ -1486,7 +1486,7 @@ function sentimentBadge(label) { /* ═══════════════ API KEYS ═══════════════ */ const KEY_PATTERNS = { 'FIRMS_MAP_KEY': /^[0-9a-fA-F]{32}$/, - 'GEMINI_API_KEY': /^AIza[0-9A-Za-z_-]{35}$/, + 'NOUS_API_KEY': /^.{16,}$/, 'TELEGRAM_TOKEN': /^\d{8,10}:[0-9A-Za-z_-]{35}$/, }; async function loadKeys() {