ai: add the /api/ai blueprint, the read-only LLM tool catalog
Lean, flat, LLM-shaped read-only endpoints over the library: global,
video, archive, and doc search; paged captions, archive text, and zim
entries; collections, inventories, and a media-directory text reader.
Links are server-computed; big content is paged, never truncated.
This ports the formatting layer from wrolpi_mcp (untouched for now)
into tested code. First phase of ai.md.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-25 21:03:11 -06:00
|
|
|
from modules.ai.api import ai_bp # noqa
|
2026-08-25 21:21:34 -06:00
|
|
|
from modules.ai.downloader import ModelDownloader # noqa Instantiation registers the downloader.
|
2026-08-25 21:36:00 -06:00
|
|
|
from modules.ai import service # noqa Import registers the idle-unload perpetual worker.
|