Closed np closed 1 year ago
Thank you so much for this @np 🙏
I wanted to refactor this for such a long time but never really got to it. Thanks for diving deep and cleaning this up! I would maintain the chat context/messages variables and make them all local and pass them around to reduce global variables further, but this approach also works.
Also very smart use of jq to escape! 👌
Fixes #97 and #96