Update intelligence

This commit is contained in:
Logan
2026-04-12 23:33:44 -04:00
parent 757bfe82e0
commit 7b6fd640d9
8 changed files with 456 additions and 141 deletions
+7 -1
View File
@@ -17,9 +17,15 @@ class Settings(BaseSettings):
# Node health
node_offline_threshold: int = 90 # seconds without checkin before marking offline
# OpenAI
# OpenAI (Whisper STT)
openai_api_key: Optional[str] = None
# Gemini (intelligence extraction, embeddings, incident summaries)
gemini_api_key: Optional[str] = None
summary_interval_minutes: int = 15 # how often the summary loop runs
correlation_window_hours: int = 4 # how far back to look for matching incidents
embedding_similarity_threshold: float = 0.82 # cosine similarity cutoff for slow-path match
# Internal service key — allows server-side services (discord bot) to call C2 without Firebase
service_key: Optional[str] = None