feat: make SearXNG URL env-configurable and support basic auth #7

Merged
michael merged 4 commits from feat/searxng-auth-env-url-v2 into master 2026-06-30 22:48:22 +02:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit 6ed91b05db - Show all commits
+1 -1
View File
@@ -13,7 +13,7 @@ class AgentSettings(BaseSettings):
gitea_repos_root: str = "" gitea_repos_root: str = ""
agent_model_id: str = "qwen/qwen3.6-35b-a3b" agent_model_id: str = "qwen/qwen3.6-35b-a3b"
agent_max_retries: int = 2 agent_max_retries: int = 2
searxng_url: str = "https://searxng.meeks.freeddns.org" searxng_url: str = ""
def get_settings() -> AgentSettings: def get_settings() -> AgentSettings:
+3
View File
@@ -179,6 +179,9 @@ class ResearchTools:
Returns formatted results string on success, or None if the instance Returns formatted results string on success, or None if the instance
is unreachable so the caller can fall through to the next backend. is unreachable so the caller can fall through to the next backend.
""" """
if not _SEARXNG_URL:
logger.info("SearXNG URL is not configured; skipping SearXNG search.")
return None
params: dict[str, Any] = { params: dict[str, Any] = {
"q": query, "q": query,
"format": "json", "format": "json",