This commit is contained in:
Team3
2026-06-06 00:14:43 +02:00
parent 3ed5f7c3e5
commit a8fbf83059
39 changed files with 7347 additions and 472 deletions

View File

@@ -1,5 +1,38 @@
from pathlib import Path
PROJECT_ROOT = Path(__file__).resolve().parent.parent
TEMPLATES_DIR = PROJECT_ROOT / "templates"
STORAGE_DIR = PROJECT_ROOT / "storage"
FRONTEND_DIST = PROJECT_ROOT / "frontend" / "dist"
DB_PATH = PROJECT_ROOT / "creator.db"
DB_PATH = STORAGE_DIR / "creator.db"
PROJECTS_DIR = PROJECT_ROOT / "projects"
FORMAT_META = {
"OnePager": {"pages": "1 Seite", "time": "~5 Min"},
"MiniGuide": {"pages": "3-5 Seiten", "time": "~15-25 Min"},
"Guide": {"pages": "10-30 Seiten", "time": "variabel"},
}
AGENT_TIMEOUT = 3600
MAX_CONCURRENT_GENERATIONS = 10
# Provider-Stacks: komplett unabhängig, einer kann jederzeit entfernt werden.
# Rollen: "guide" = große Generierung, "fast" = Baustein-Recherche/Chat.
DEFAULT_PROVIDER = "claude"
PROVIDERS = {
"claude": {
"cli": "claude",
"guide": "claude-opus-4-8[1m]",
"fast": "claude-sonnet-4-6",
"env_key": None, # Auth via CLAUDE_CODE_OAUTH_TOKEN oder ~/.claude
"timeout_factor": 1,
},
"minimax": {
"cli": "opencode",
"guide": "minimax/MiniMax-M3",
"fast": "minimax/MiniMax-M3",
"env_key": "MINIMAX_API_KEY",
"timeout_factor": 3, # M3 ist bei großen Dokumenten deutlich langsamer
},
}