Playing around with the new update to the vercel ai sdk, building off their existing example to find out further capabilities.
Head over to their GitHub repo for the original code and more information.
Also, took a few bits of code from this repo for the PostHog processing.