The idea is:
We need to ask chatgpt for content, that should be parsed as json. https://platform.openai.com/docs/guides/text-generation/json-mode
Recently OpenAI added special option to provide ansvers in json\xml.
My use case:
I generate content with chatgpt, but it is a set of tags and properties (result of classification). To parse those answer, we ask chatgpt to output them in json.
The new option simplifies that flow, reducing the amount of invalid jsons in the output.
Any resources to support this?
(https://platform.openai.com/docs/guides/text-generation/json-mode)