So perhaps unsurprisingly, where ChatGPT starts to fail (as a programming assistant) is where you're business requirements start to creep in- simple tasks fine- but now I've added a /parse endpoint to parse the latest chat thread- programming it more involved here's the code: