Add AI functionality; fuck up UI royally, still a piece of shit.

This commit is contained in:
Ned Halksworth
2026-05-04 20:00:31 +01:00
parent e0f2eedcd9
commit 0fe063fed5
10 changed files with 1528 additions and 405 deletions
+13
View File
@@ -1,9 +1,18 @@
"""Application-wide configuration for sFetch."""
import os
from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent
try:
from dotenv import load_dotenv
load_dotenv(BASE_DIR.parent / ".env")
load_dotenv(BASE_DIR / ".env")
except ImportError:
pass
MAX_CRAWL_DEPTH = 2
MAX_PAGES_PER_DOMAIN = 50
CRAWL_DELAY_SECONDS = 1.0
@@ -14,6 +23,10 @@ TOP_SITE_SOURCE_URL = "https://tranco-list.eu/top-1m.csv.zip"
TOP_SITE_SEED_LIMIT = 1000
TOP_SITE_DOWNLOAD_TIMEOUT_SECONDS = 30.0
TOP_SITE_SEED_META_KEY = "top_site_seed_v1"
OLLAMA_API_BASE = os.getenv("OLLAMA_API_BASE", "https://ollama.com").rstrip("/")
OLLAMA_API_KEY = os.getenv("OLLAMA_API_KEY", "")
OLLAMA_DEFAULT_MODEL = os.getenv("OLLAMA_DEFAULT_MODEL", "gpt-oss:120b")
OLLAMA_REQUEST_TIMEOUT_SECONDS = 90.0
ADULT_DOMAINS = {
"pornhub.com", "xvideos.com", "xnxx.com", "xhamster.com", "redtube.com",