you can call the method check if done if not done then call chatGPT and prompt it for more data, until you get a closing tag, if you fail, you can try dumping the output as text, or find an alternate way to correct the JSON String , i am