Hacker News new | ask | show | jobs
by keiferwiseman 1042 days ago
It took some iterations but I've managed to get the OpenAI API to give me valid JSON 100% of the time now(based on my testing). I think I put in the prompt to never use newlines because it was causing issues lol.