fix: let Settings model reach summarizer; cap map pins at 20

This commit is contained in:
Sirius DevOps 2026-08-28 00:02:51 -04:00
commit d2bf55183c
7 changed files with 20 additions and 5 deletions

View file

@ -214,7 +214,7 @@ async def get_api_key(name: str) -> str | None:
"""Read a stored key value — used by ingest services, never by the API.
Returns the raw value (or None when unset) so producers can pass it to
external APIs (FIRMS, Gemini, Telegram, …). Reads live from Postgres, so a
external APIs (FIRMS, Nous, Telegram, …). Reads live from Postgres, so a
key set via the dashboard is picked up on the next poll — no restart.
"""
await ensure_api_keys_table()

View file

@ -605,7 +605,7 @@ async def list_documents(
async def list_api_keys():
"""List known API keys with set/missing status — masked, never raw.
Registered keys (FIRMS_MAP_KEY, GEMINI_API_KEY, TELEGRAM_TOKEN)
Registered keys (FIRMS_MAP_KEY, NOUS_API_KEY, TELEGRAM_TOKEN)
are always included. Any extra stored keys are appended.
"""
return await list_keys()