Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nutlope/twitterbio
Generate your Twitter bio with Mixtral and GPT-3.5.
https://github.com/nutlope/twitterbio
Last synced: 25 days ago
JSON representation
Generate your Twitter bio with Mixtral and GPT-3.5.
- Host: GitHub
- URL: https://github.com/nutlope/twitterbio
- Owner: Nutlope
- License: mit
- Created: 2023-01-16T19:38:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-19T03:45:19.000Z (3 months ago)
- Last Synced: 2024-10-14T22:01:13.870Z (25 days ago)
- Language: TypeScript
- Homepage: https://www.twitterbio.io
- Size: 2.12 MB
- Stars: 1,665
- Watchers: 15
- Forks: 469
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ChatGPT-repositories - twitterbio - Generate your Twitter bio with Mixtral and GPT-3.5. (Others)
README
# [twitterbio.io](https://www.twitterbio.io/)
This project generates Twitter (X) bios for you using AI.
[![Twitter Bio Generator](./public/screenshot.png)](https://www.twitterbio.io)
## How it works
This project uses both [Mixtral](https://mistral.ai/news/mixtral-of-experts/) and [GPT-3.5](https://openai.com/api/) with streaming to generate a Twitter bio. It constructs a prompt based on the form and user input, sends it either to the Mixtral API through [Together.ai](https://www.together.ai/) or the GPT-3.5 API through OpenAI, then streams the response back to the application.
If you'd like to see how I built the GPT-3.5 version of this, check out the [video](https://youtu.be/JcE-1xzQTE0) or [blog post](https://vercel.com/blog/gpt-3-app-next-js-vercel-edge-functions).
## Running Locally
1. Create an account at [OpenAI](https://beta.openai.com/account/api-keys) and add your API key under `OPENAI_API_KEY` in your `.env`
2. Create an account at [Together.ai](https://www.together.ai/) and add your API key under `TOGETHER_API_KEY`
3. Run the application with `npm run dev` and it will be available at `http://localhost:3000`.## One-Click Deploy
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/Nutlope/twitterbio&env=OPENAI_API_KEY,TOGETHER_API_KEY&project-name=twitter-bio-generator&repo-name=twitterbio)