update
This commit is contained in:
36
backend/config.py
Normal file
36
backend/config.py
Normal file
@@ -0,0 +1,36 @@
|
||||
from pathlib import Path
|
||||
|
||||
PROJECT_ROOT = Path(__file__).resolve().parent.parent
|
||||
DOC_DIR = PROJECT_ROOT / "doc"
|
||||
STORAGE_DIR = PROJECT_ROOT / "storage"
|
||||
DB_PATH = PROJECT_ROOT / "guides.db"
|
||||
|
||||
ALLOWED_FORMATS = [
|
||||
"OnePager",
|
||||
"Cheatsheet",
|
||||
"MiniGuide",
|
||||
"BeginnerGuide",
|
||||
"IntermediateGuide",
|
||||
"ExtendedGuide",
|
||||
]
|
||||
|
||||
FORMAT_META = {
|
||||
"OnePager": {"pages": "1 Seite", "time": "~5 Min"},
|
||||
"Cheatsheet": {"pages": "1 Seite", "time": "~10 Min"},
|
||||
"MiniGuide": {"pages": "3-4 Seiten", "time": "~15 Min"},
|
||||
"BeginnerGuide": {"pages": "35-40 Seiten", "time": "~3h"},
|
||||
"IntermediateGuide": {"pages": "42-50 Seiten", "time": "~4h"},
|
||||
"ExtendedGuide": {"pages": "47-60 Seiten", "time": "~5h"},
|
||||
}
|
||||
|
||||
GENERATION_TIMEOUTS = {
|
||||
"OnePager": 600,
|
||||
"Cheatsheet": 600,
|
||||
"MiniGuide": 600,
|
||||
"BeginnerGuide": 900,
|
||||
"IntermediateGuide": 1200,
|
||||
"ExtendedGuide": 1500,
|
||||
}
|
||||
|
||||
MAX_CONCURRENT_GENERATIONS = 10
|
||||
CLAUDE_CLI = "claude"
|
||||
Reference in New Issue
Block a user