I'm trying to write prompts for chatGPT API. I want it to respond with purely machine readable JSON responses containing information I want.
I want it to appraise a description of a project, and in JSON, specify properties of that appraisal, such as "estimated_hours_of_work". I don't want it to give any text outside of what is requested in JSON format, so my code can evaluate and use the response.
How can I do that? I can't seem to engineer a prompt where the response is purely JSON, it always seems to give extra commentary such as:
Certainly! Here's the appraisal of the text you provided in pure JSON format, without any additional comments or text:
I either want to use gpt-3.5-turbo or gpt-4