BuildRiot
Sign in

AISource: llama-swap

llama-swap v269 adds persistent captures and explicit embedding discovery

llama-swap v269 adds optional request and response storage for troubleshooting across restarts, plus explicit embedding discovery. Capture retention remains bounded, and persistence requires configuration.

llama-swap logo
Cover: BuildRiot

llama-swap released v269 on November 1, 2026, adding optional persistent captures for recovering requests and responses after restarting the service during local inference troubleshooting. The project reported a chat capture surviving a restart; this establishes neither crash recovery nor measured reliability or performance gains. Devotd also covered the release, citing GitHub’s release record without separate testing. Sources: llama-swap, Devotd Github

Capture persistence defaults to false; enabling store.persistCaptures with store.path: /data/metrics.db stores captures separately in /data/metrics_captures.db, and both databases must move together. The default budget is 5 MB of compressed captures; captureBuffer: 15 raises it to 15 MB, while captureBuffer: 0 disables captures. Pruning removes the oldest captures asynchronously, so activity records can outlive captures; a PR review cautions that this budget is not a hard database-file size limit. Sources: llama-swap

The project’s authentication guide on main documents unauthenticated defaults and apiKeys protection for the web UI and /api/ routes, including captures. All keys have equal permissions without per-user isolation, so shared deployments need access restricted to trusted users. The UI retrieves retained captures through GET /api/captures/{id}, using an activity record’s capture_id; capture writes remain on the request path. Sources: llama-swap

The capabilities.embeddings setting exposes embedding capabilities through /v1/models because llama-server /props provides no embedding information; previously, probed embedding models appeared as text-to-text. The UI derives Chat, Embeddings and Rerank categories from capability flags and modality lists. llama-server b12017 added a list-valued entry to chat_template_caps that broke whole-response decoding; individual-field parsing now preserves discovery, issuing warnings and using zero values for unexpected field types. Sources: llama-swap

Usage accounting now has separate handlers for llama-server, vLLM, Anthropic, OpenAI, TabbyAPI and oMLX. An automatic fallback reads all known formats. Activity metadata adds task type, route, peer and reasoning tokens. Sources: llama-swap

What to do

  1. Before sharing a deployment, configure apiKeys to protect the UI and /api/ routes, and restrict access to trusted users because keys have equal permissions.
  2. To enable persistent captures in llama-swap v269, set store.path: /data/metrics.db and store.persistCaptures: true; persisting metrics alone does not persist captures.
  3. Set captureBuffer: 15 for a 15 MB retained compressed-capture budget, retain the 5 MB default, or set captureBuffer: 0 to disable captures.
  4. When moving storage configured with store.path: /data/metrics.db, move metrics.db and metrics_captures.db together.
  5. For embedding models, configure capabilities.embeddings so /v1/models advertises their embedding support. Sources: llama-swap

Why it matters

Developers can retain local inference requests and responses across restarts and expose embedding support explicitly. Recovery still depends on retention: an activity record can remain after its capture has been pruned.

Attribution

Sources

  1. 1llama-swapRelease v269Source published (UTC)
  2. 2Devotd Githubmostlygeek/llama-swap v269 — Captures, embeddings, metrics
  3. 3llama-swapv269 configuration example
  4. 4llama-swapStore request/response captures in separate SQLite database
  5. 5llama-swapAPI keys and authentication

Read the original source for full details and context.

Report a problem

Links, dates or what you expected. Do not include passwords or private data.

More on AI

All AI stories
llama-swap v269 adds persistent captures and explicit embedding discovery · BuildRiot