llama.cpp
e5bd989b - ui: store conversations and settings through storage adapters

Commit
24 days ago
ui: store conversations and settings through storage adapters Add an opt-in llama-server document store (--ui-storage, --ui-storage-dir) that keeps one JSON file per conversation under the platform data directory and serves it on /storage/conversations and /storage/settings, rejecting writes based on a stale revision with 409. In the UI, DocumentStoreBackend implements StorageBackend over a StorageAdapter: it caches documents, batches writes per transaction and replays its edits when another client wrote first. llama-server is the built-in adapter; others (Postgres via Supabase or Neon, PocketBase) can be added in $lib/storage-adapters, see docs/storage-adapters.md. Settings -> Import/Export offers each available adapter, copies this browser's data on switch and keeps the API key in the browser. Assisted-by: Claude (Opus 5.5 Medium)
Author
Committer
Parents
Loading