Evil Recipe Blog - Mooney's Musings
Skip to main content
I was looking for something to do with the OpenAI API a while back. I've built some small tools with it before (a product description generator on the admin screen at Glou Beauty, for example). We had been looking up recipes to make around that time and encountering a lot of the lengthy personal stories leading up to the recipe where you feel like you're scrolling forever and wondering if you'll ever make it to the bottom of the page where the actual recipe is.
In this version, you never do.
This utilizes the OpenAI API to continually generate more of the story as you scroll. The prompt it passes to the LLM is:
Tell me a story like you're a recipe blogger building up to giving out your secret chocolate chip cookie recipe. Do not include any text outside of the story. Do not ever actually introduce the recipe. String the story out as long as humanly possible. Please separate paragraphs with new lines. If I provide you with previous messages, please continue the story and never actually introduce the recipe. Please leave it open ended and do not include a sign-off of any kind, do not include any indication that the story continues (e.g. 'to be continued' or '...') just stop at the end of a paragraph and sound like it's about to wrap up in the next paragraph, but never actually do it.
I also utilized ChatGPT to generate images of the blogger and the cookies, to come up with a biography for the blogger, and the title and layout for the blog itself.
Completely useless? Yes. But it did make me chuckle.
You can look at the code and run it for yourself (if you have an OpenAI API key) by visiting the GitHub repository.