wrolpi/modules/ai
Roland 485a9703eb
ai: package llama-server for all three deployments, with idle unload
install_llama_cpp.sh builds llama-server from the SHA-pinned v0.3.0
source tarball (single source of truth: on-device upgrade, Pi image,
Live ISO, and the new docker/llm container all call it; version-marker
makes re-runs no-ops).  start_llama_server.sh refuses to start unless
ai.yaml enables AI and the active model file exists — which also covers
unmounted media.  wrolpi-llm.service is installed but deliberately
never enabled at boot: the Controller starts it on demand (registered
in managed_services; the llm compose service follows the samba
pattern), and the API's perpetual idle-unload worker asks the
Controller to stop it after the configured idle minutes.  llama-server
is localhost-only natively, internal-network-only in docker, and never
proxied by Caddy.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-24 14:09:54 -06:00
..
test ai: package llama-server for all three deployments, with idle unload 2026-09-24 14:09:54 -06:00
__init__.py ai: package llama-server for all three deployments, with idle unload 2026-09-24 14:09:54 -06:00
api.py ai: ai.yaml config, model catalog, and the GGUF downloader 2026-09-24 14:09:53 -06:00
catalog.py ai: ai.yaml config, model catalog, and the GGUF downloader 2026-09-24 14:09:53 -06:00
config.py ai: ai.yaml config, model catalog, and the GGUF downloader 2026-09-24 14:09:53 -06:00
conftest.py ai: ai.yaml config, model catalog, and the GGUF downloader 2026-09-24 14:09:53 -06:00
controller_client.py ai: package llama-server for all three deployments, with idle unload 2026-09-24 14:09:54 -06:00
downloader.py ai: ai.yaml config, model catalog, and the GGUF downloader 2026-09-24 14:09:53 -06:00
errors.py ai: system endpoints — aggregate status, services, logs, disks 2026-09-24 14:09:53 -06:00
help_docs.py ai: help-docs search — Help mode tools 2026-09-24 14:09:53 -06:00
lib.py ai: add the /api/ai blueprint, the read-only LLM tool catalog 2026-09-24 14:09:52 -06:00
schema.py ai: ai.yaml config, model catalog, and the GGUF downloader 2026-09-24 14:09:53 -06:00
service.py ai: package llama-server for all three deployments, with idle unload 2026-09-24 14:09:54 -06:00