This repository has been archived on 2026-10-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
donnyandClaude Opus 4.7 496f613b6a Add CivitAI downloads + local model deletion, with startup auto-download
downloads.py: streamed CivitAI downloads into the right ComfyUI folder,
in-memory progress (polled), cancel, and local model deletion. Adapted
from the legacy civitai.py — trimmed to download/cancel/delete and wired
into the new hash index:
- destination folder is derived from CivitAI's model type unless forced
- finished downloads are hashed into the index (shows in /imagelab/hashes)
- deletes drop the model from the index via hashing.forget()
- skip-if-present so persistent-volume pods don't re-download
- IMAGELAB_AUTO_DOWNLOAD env var: comma/newline list of version ids,
  CivitAI URLs, model:<id>, or <folder>::<entry> — queued on startup

api.py: POST/GET/DELETE /imagelab/downloads + DELETE /imagelab/models/...
hashing.py: forget() — remove a model's .index sidecar + in-memory entry
__init__.py: queue startup downloads via the aiohttp on_startup hook

Token via CIVITAI_TOKEN env var. Legacy civitai*.py / websocket.py left
untouched as reference.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 15:57:53 -07:00
2026-01-03 14:42:05 -07:00
2026-01-04 13:23:36 -07:00
S
Description
No description provided
172 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 100%