Files
Dolon (Agent) a5bd550971 ollama: never honour think=false literally (0.2.4)
gpt-oss:120b generates its answer AFTER the reasoning pass. With
think=false AND a JSON format set it returns EMPTY content and no
thinking at all. Karakeep sends exactly that, so every tagging job
failed in under a second with 'the model ignored our prompt and
didn't respond with the expected JSON: {}'.

Verified by curl through the router:
  think=false -> content ''
  think=true  -> content '{"tags":["x"]}'

Fix: keep reasoning ON upstream and strip the 'thinking' field from
the reply instead, which is what a caller asking for no thinking
actually wants. Applies to the native forge path (which forwards the
body as-is) and the cloud mapping. Streaming is untouched: HA streams
and already handles the separate field.
2026-09-19 13:26:55 +00:00
..