v4 Schritt 2: Cookbook 2.0 — Use-Case-Setups (Stacks)
- recipes.py: 6 kuratierte Use-Case-Stacks (Coding, Vision, Chat, LongDoc, Agents, Fast). - cookbook.py: /recipes (Stack-Fit pro Modell + Gesamturteil) + /install-recipe (download + register aller Modelle mit optimalem, gedeckeltem Kontext). - cookbook.js: Use-Case-Karten als Haupteinstieg + Setup-Modal + 'Komplettes Setup installieren'; Roh-Suche in 'Profi-Modus' (collapsible). - models.py /register: exists()-Check entfernt (fixt frischen Download-Install). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -145,8 +145,8 @@ def download(req: DownloadReq):
|
||||
|
||||
@router.post("/register")
|
||||
def register(req: RegisterReq):
|
||||
if not Path(req.model_path).exists():
|
||||
raise HTTPException(404, f"Datei nicht gefunden: {req.model_path}")
|
||||
# Bewusst KEIN exists()-Check: beim frischen Download läuft der hf-Job noch, die Datei kommt
|
||||
# erst gleich. Eintrag jetzt schon schreiben → llama-swap (-watch-config) lädt, sobald sie da ist.
|
||||
cfg = read_config()
|
||||
cmd = CMD_TEMPLATE.replace("{model}", req.model_path).replace("{ctx}", str(req.ctx))
|
||||
cfg["models"][req.alias] = {
|
||||
|
||||
Reference in New Issue
Block a user