u/HmmImNotReallySure

▲ 2 r/n8n

when using gemma4:26b or oss 20b via ollama in n8n basic Ilm chain or Al agent node, the model returns its thinking AND its final output all mixed together therefore structured output parser always error cause it receives something like this:

"We need to output JSON per schema... outer object type object... check schema... the subject is a follow-up... so severity 2... medium priority... {"output":{"output" {"severity": "Severity 2""priority":"Medium"}}}"

however if i tried the same prompt, the same node, the same structured output parser, the same model but via openrouter. it works just fine

has anyone worked around this without switching to the HTTP request node or a different provider? any help appreciated!

reddit.com
u/HmmImNotReallySure — 23 days ago