Files
automatic/modules/api
CalamitousFelicitousness 6c20e49897 refactor(caption): extract caption API into standalone module
Move all caption/interrogate/tagger/VQA API code out of the monolithic
endpoints.py and models.py into a new self-contained modules/api/caption.py,
following the loras.py / nudenet.py self-registering pattern.

- Move 15 Pydantic models (ReqCaption, ResCaption, ReqVQA, ResVQA,
  ReqTagger, ResTagger, dispatch union types, etc.) from models.py
- Move 11 handler functions from endpoints.py
- Deduplicate ~150 lines via shared _do_openclip, _do_tagger, _do_vqa
  core functions called by both direct and dispatch endpoints
- Add register_api() that registers all 8 caption routes
- Add promptgen field to ResVLMPrompts (bug fix: handler returned it
  but response model silently dropped it)
- Improve all endpoint docstrings and Field descriptions for API docs
2026-02-11 02:50:06 +00:00
..
2025-10-07 08:21:05 -04:00
2025-10-26 18:55:54 -04:00
2025-08-12 08:49:38 -04:00
2025-11-14 15:47:13 -05:00
2025-12-22 09:17:15 +01:00
2025-08-10 09:19:49 -04:00
2025-07-03 09:18:38 -04:00
2026-01-13 02:08:11 -08:00
2025-10-27 02:14:41 +03:00