That’s very kind of you. Yes please go ahead and share your solution for the benefit of all.
An API based solution isn’t ideal for me personally since I used ChatGPT from lots of different devices (iPhone, iPad, Mac, Web) and don’t always have a “terminal” at my disposal.
I’ve since jumped ship to Gemini Pro anyway!