Files
LocalAI/core/http
Ettore Di Giacinto 3167c58351 feat(memory): call the provider of the notes from the host
The host now calls the roles of the notes slot itself, not only the tools
the model sees.

- At the start of a turn the context role is called with a 3 s limit and
  a 6 KiB cap. The text goes in front of the message as data, in markers
  that it cannot close, and not in the prompt, so it does not restart the
  chat engine. The session passes the turn message to the hook and takes
  an optional per-turn context block from it.
- A write through a provider follows the save level, the agent grant and
  the messaging rules. Only Save and tell me applies a write at once, and
  not for a remote provider that cannot undo. Other writes are held for a
  confirmation.
- The export and the forget of a provider are routed by
  GET and DELETE /api/chats/memory.
- A provider that fails three times in a row is left alone for a minute,
  the slot shows a plain notice and the chat goes on without notes.
- Every call writes one audit line with the outcome and the size, and
  never any text.
- The add-on that the built-in provider replaces is an alias: it is not
  listed and a choice that names it means the built-in provider.

Assisted-by: Claude:claude-sonnet-5-5 go
2026-11-05 01:45:30 +00:00
..
2026-03-30 00:47:27 +02:00