Commit Graph
4 Commits
Author SHA1 Message Date
BlackAngelTV 60984e70ec feat(backend): keep the model resident and load it before it is asked
Ollama drops an idle model after five minutes by default, so the first
question after a pause pays the whole several-second load. Every chat request
now carries keep_alive (30 minutes by default) and POST /api/chat/warm loads
the weights on demand, letting a client wake the model while the user is
still writing. A warm-up that fails answers warmed=false instead of an error:
it is an optimisation, not a step the answer depends on.
2026-10-06 20:03:31 +02:00
BlackAngelTV 6ebf550eb0 feat(backend): bound the messages kept per project
A project that lives for months would otherwise grow the SQLite file without
limit, even though the model only ever reads the most recent messages. Pruning
the oldest rows on every write keeps a project to a fixed budget without
touching what the context is built from.
2026-10-05 21:39:45 +02:00
BlackAngelTV 31e9619727 feat(backend): stream /api/chat as spec-compliant SSE
Expose the bare `data:`/`[DONE]` contract on the main chat endpoint so
simple clients can consume the stream without parsing named events.
2026-10-05 20:40:12 +02:00
BlackAngelTV cf748df2c5 docs(backend): document endpoints, security and streaming 2026-10-05 15:01:57 +02:00