Template: OpenAI GPT chat bot API running on Cloudflare Worker
github.com
github.com
Instructions to get started inside the README!
Let me know if this helps, or how to improve it! :)
This is really just to test the concept, watch the token usage rates, etc.
Since you feed in the entire script with each pass, the API side could simple prepend the origin instructions/first parts, then tack on the user input to the end.