Yeah, definitely recommend you try it before discounting... I too have been super jaded with the current Node import ecosystem (esp. as an author), but Bun has basically become something of a silver bullet, with some small exceptions.
If I want, I can literally run a TS file directly with mixed import/require (not that you would ever) directly, without a package.json, tsconfig, dependencies, etc.
In my experience, it's basically Node, minus all the setup/config/build headaches.
itty-router is different than other routers... and not just by being smaller (450 bytes for the Router itself, or 1.6k for the entire library... roughly ~140x smaller than express.js).
It takes a somewhat novel approach to routing, allowing your code to be shorter, simpler, and more readable.
Look in the openai.ts file for an example of prepending messages... in this case, I actually prepend one just to embed a random seed (otherwise the same input always gives the same response).
I'm about to start hosting apps that need a preconfigured AI context (basically feed it an opening script/instructions), for users to interact with.
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.
While working on my latest project, I wanted a simple GPT chat bot API hosted on Cloudflare Workers. I decided to make this skeleton a template for future projects and to share it with the community.
Instructions to get started inside the README!
Let me know if this helps, or how to improve it! :)
What do you mean by page title though?