Commit Graph
9 Commits
Author SHA1 Message Date
Vito Sansevero 195cf2adb4 fix: reduce download timeout to 5s, update progress per LoRA (#52)
5K images at 15s timeout was painfully slow. Reduced to 5s fail-fast.
Progress now updates for every LoRA with image count, not every 5th.
2026-04-03 08:56:09 -07:00
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 890fd70ac5 feat: reimport clears previous lora-manager data first (#52)
Clicking Import LoRA Data now deletes all existing lora-manager
category prompts before scanning, ensuring a clean reimport.
2026-04-03 08:26:15 -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 8c93acb2ce fix: use rglob to find metadata in lora subdirectories (#52) 2026-04-03 08:08:01 -07:00
Vito Sansevero d42fe477c3 fix: use lora-manager category and tag for imported LoRA data (#52) 2026-04-03 08:03:51 -07:00
Vito Sansevero c0bcce5af1 feat(api): add LoraManager integration endpoints (#52)
Detection, enable/disable, scan/import, trigger word lookup,
and cache refresh endpoints under /prompt_manager/lora/*.
2026-04-03 07:28:24 -07:00