Add fail-closed AI web research discovery provider
CI / compose (push) Successful in 10m53s

This commit is contained in:
Marco0300
2026-09-03 20:32:33 +02:00
parent bf5b54679a
commit da91c188f3
7 changed files with 235 additions and 10 deletions
+5 -1
View File
@@ -15,6 +15,8 @@ class Config:
session_secret: str
outreach_enabled: bool
log_level: str
ai_research_provider: str
ai_research_model: str
def _env(values, key, default=""):
@@ -40,4 +42,6 @@ def load_config(values=None):
log_level = _env(values, "LOG_LEVEL", "INFO").upper()
if log_level not in {"QUIET", "ERROR", "WARNING", "INFO", "DEBUG"}:
raise ConfigError("LOG_LEVEL is invalid")
return Config(app_env, data_dir, secret, False, log_level)
return Config(app_env, data_dir, secret, False, log_level,
_env(values, "AI_RESEARCH_PROVIDER").lower(),
_env(values, "AI_RESEARCH_PROVIDER_MODEL"))