wrolpi/modules/ai/test
Roland 49ff97c3ad
ai: list custom GGUF files in the Manage tab
A GGUF copied into ai/models/ by hand could be activated by editing
ai.yaml, but never appeared in the Manage tab because the catalog
endpoint only returned CDN/bundled models. The Active Model dropdown
builds from downloaded models, so a custom file was unselectable.

The catalog endpoint now merges any on-disk *.gguf that is not in the
catalog as a `custom` tier model with its real size and no URL. It is
discovered on every request, so a file appears the next time the page
loads; the file refresh is not involved and does not index models.

Catalog models are never duplicated and in-progress .tmp downloads are
ignored. Custom rows read "On disk" and the hint explains the copy-in
path, the tool-calling requirement, and the context_size fallback.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-24 13:30:00 -06:00
..
__init__.py ai: add the /api/ai blueprint, the read-only LLM tool catalog 2026-09-13 20:10:15 -06:00
test_agent.py ai: research mode runs on the compact tool catalog 2026-09-13 20:10:18 -06:00
test_api.py ai: page list_collections 2026-09-13 20:10:18 -06:00
test_chat_api.py ai: research mode runs on the compact tool catalog 2026-09-13 20:10:18 -06:00
test_config_catalog.py ai: list custom GGUF files in the Manage tab 2026-09-24 13:30:00 -06:00
test_context.py ai: kind-generic search_files / get_file / read_content 2026-09-13 20:10:18 -06:00
test_help_docs.py ai: live-chat fixes from first real-model run 2026-09-13 20:10:16 -06:00
test_lib.py ai: kind-generic search_files / get_file / read_content 2026-09-13 20:10:18 -06:00
test_mcp_parity.py ai: wrolpi_mcp exposes only the compact tool set 2026-09-13 20:10:18 -06:00
test_service.py ai: package llama-server for all three deployments, with idle unload 2026-09-13 20:10:16 -06:00
test_system_api.py ai: system endpoints — aggregate status, services, logs, disks 2026-09-13 20:10:15 -06:00