Commit Graph
10 Commits
Author SHA1 Message Date
Vito Sansevero 0e41e6d65c feat: add CivitAI API key setting for authenticated image downloads (#52)
Most civitai example images (especially NSFW) require authentication.
Adds API key field to the Integrations settings panel, passed as
Bearer token when downloading example images.
2026-04-03 08:41:41 -07:00
Vito Sansevero 451596fab3 feat: download civitai example images during LoRA import (#52)
Images from civitai.images[] are downloaded to data/lora_images/ cache
and linked to prompts alongside local preview files. Cached files are
reused on reimport. Image serving allows the cache directory.
2026-04-03 08:33:47 -07:00
Vito Sansevero 7713cecba6 fix: handle null civitai field, link all preview images (#52)
- Guard against civitai: null in metadata (was crashing the scan)
- Link all local preview images per LoRA, not just the first
- Add get_civitai_image_urls() for future remote image support
2026-04-03 08:24:45 -07:00
Vito Sansevero fea745deb9 fix: use example prompts instead of trigger words, serve LoRA preview images (#52)
- Prompt text now uses civitai example prompts (images[].meta.prompt)
  when available, falling back to model name instead of trigger words
- Image serving now allows paths within LoRA directories when the
  integration is enabled, fixing 403 errors on preview images
2026-04-03 08:20:20 -07:00
Vito Sansevero b71e4780e9 feat: discover LoRA dirs from extra_model_paths.yaml and folder_paths (#52)
Only models/loras under the ComfyUI root was checked. Now also parses
extra_model_paths.yaml and uses folder_paths.get_folder_paths('loras')
at runtime to find all configured LoRA directories.
2026-04-03 08:10:37 -07:00
Vito Sansevero 8c93acb2ce fix: use rglob to find metadata in lora subdirectories (#52) 2026-04-03 08:08:01 -07:00
Vito Sansevero bff70b6323 fix: find ComfyUI root via folder_paths and handle symlinked installs (#52) 2026-04-03 07:46:08 -07:00
Vito Sansevero 1a6cad42cb fix: simplify LoraManager heuristic to match real install structure (#52) 2026-04-03 07:42:05 -07:00
Vito Sansevero a2061e2977 fix: detect LoraManager with case-insensitive directory scan (#52) 2026-04-03 07:31:29 -07:00
Vito Sansevero 582bb052f7 feat: add LoRA utility module for LoraManager integration (#52)
Detection, metadata reading, trigger word cache, and prompt injection
for ComfyUI-Lora-Manager. All functions return empty results when
LoraManager is not installed.
2026-04-03 07:28:24 -07:00