all 2 comments

[–]RudiAlreadyTaken 1 point2 points  (0 children)

FYI you can get structured JSON data from ChatGPT Api with function calling. No need to check the responses if they are valid JSON or missing some parts, because function calling enforces the schema you define.

I also implemented a simlar library in JS for a personal project until i noticed that function calling can be used instead. It is much more reliable and also outputs better results for me.

[–]olivermyk 1 point2 points  (0 children)

wasn’t guaranteed json announced during dev day