Files
Dolon (Agent) 2db73ecd08 ollama: translate STREAMED generate->chat chunks back to generate shape (0.2.6)
0.2.5 rewrote /api/generate to /api/chat upstream when a format is set,
but only converted the response shape on the NON-streaming path.
Streamed chunks passed through in chat shape (message.content) while the
caller read generate shape (response) -- arriving as a run of literal
'undefined'. Karakeep tags via a streamed generate call and reported
exactly that: 'didn't respond with the expected JSON ...
undefinedundefinedun'. Summaries were unaffected because summarisation
is not streamed, which is why they started working and tags did not.

Now every NDJSON line is translated: message.content -> response,
thinking preserved unless the caller asked for none, context added on
the terminal chunk.
2026-09-19 18:23:25 +00:00
..