Better LLM response format – A simple trick reduces costs and response time
betterprogramming.pub
betterprogramming.pub
It seems like the main issue is whitespace and indentation which YAML requires unlike JSON.
I have found providing JSON Schema to them to be an excellent way to reduce their improvisation in their outputs intended for machine consumption.