This project generates Twitter (X) bios for you using Together AI.
This project uses both Mixtral 8x7B and Llama 3.1 8B with streaming to generate a Twitter bio. It constructs a prompt based on the form and user input, sends it either to the Together.ai API, then streams the response back to the application.
If you'd like to see how I built an older version of this app with GPT 3.5, check out the video or blog post.
- Create a
.env
file, make an account at Together.ai, and add your API key underTOGETHER_API_KEY
- Run the application with
npm run dev
and it will be available athttps://localhost:3000
.
Deploy the example using Vercel: