This simple tool uses OpenAI GPT-3 API to generate movie/book recommendations based on your favorite movie/book.
- Visit https://movie-and-book-recommender.vercel.app/
- In the Favourite Movie or Book input field, enter your favourite book.
- Select the type of recommendation you want (movie or book) from the Select a Recommender dropdown menu.
- Choose the number of recommendations you want from the Number of Recommendations dropdown menu.
- Click the Generate button to get your recommendations.
- Click on any of the recommendations to copy the title.
The OpenAI GPT-3 API (text-davinci-003) and Vercel Edge streaming features are used in this application. Based on the user's input, it creates a prompt, sends it to the GPT-3 API using a Vercel Edge function, and streams the response back to the application.
- Fork the repo
- Clone the repo
- After cloning the repo, go to OpenAI to make an account and generate your API key
- Rename the
.env.example
file on the root of the project to.env
, then paste your API key in the.env
file - Run
npm install
to install all the dependencies. - Run
npm run dev
to start the project. - Go to http://localhost:3000 to see the project running.
If you want to contribute to this project, please read the contributing guide. If you have any ideas or suggestions, feel free to open an issue or a pull request.
If you like this project, please give it a star ⭐️
Built by Dapo Adedire. Templates from Vercel AI Templates, powered by Open AI & Vercel Edge Functions.