Key Features:
- Generate Twitter bio using AI ✨
- Use of Claude, Anthropic AI 🤖
- Use of Vercel AI SDK 🚀
- Rate limiting feature using Upstash ⏳
This project uses both Vercel AI Sdk and Claude with streaming to generate Twitter bios. It constructs a prompt based on the form and user input, sends it either to the claude API, where vercel ai sdk helps in the streams the response back to the application.
Node version 20.x.x
- Clone the repository.
- Create an account at console.anthropic.com and add your API key under
ANTHROPIC_API_KEY
in your.env
. - Make account at upstash and add your API key under
UPSTASH_REDIS_REST_URL
andUPSTASH_REDIS_REST_TOKEN
in your.env
. - Run npm install to install dependencies.
- Run the application with
npm run dev
and it will be available athttp://localhost:3000
.