logoalt Hacker News

n2d412/09/20241 replyview on HN

If you want to be really sure, you can also first ask it to respond in chat format, and then ask it again to respond in JSON format, if you can afford the cost.


Replies

msp2612/09/2024

It really isn't necessary when using constrained decoding (aka structured outputs) which guarantees that you'll get JSON output in the correct structure.

show 1 reply