Write something and Chat GPT will react using gifs!
https://gptreacciona.vercel.app/
- Run
npm i
to install dependencies. - Write your API keys on the file
.env
(You can use.env.example
as a template). - Run in local with
npm run dev
.
- React 18.2.0
- Next 13.1.1
- OpenAI 3.1.0
- Node >=14.6.0
- Path
pages/api/generate.js
- Update this function to give commands to the AI:
function generatePrompt(writtenPhrase) {
const iaResponse = writtenPhrase;
return `
// Write your prompt to the AI.
`