https://github.com/moisestech/ai-json-stream
https://github.com/moisestech/ai-json-stream
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/moisestech/ai-json-stream
- Owner: moisestech
- License: mit
- Created: 2023-07-20T22:27:49.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-26T13:58:58.000Z (almost 3 years ago)
- Last Synced: 2025-06-03T21:37:47.923Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://ai-json-stream.vercel.app
- Size: 143 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [twitterbio.io](https://www.twitterbio.io/)
This project generates Twitter bios for you using AI.
[](https://www.twitterbio.io)
## How it works
This project uses the [ChatGPT API](https://openai.com/api/) and the [Vercel AI SDK](https://sdk.vercel.ai/docs) with streaming. It constructs a prompt based on the form and user input, sends it to the ChatGPT API with a Vercel Edge Function, then streams the response back to the application UI.
> This template has recently been updated for the AI SDK, simplifying the amount of code needed. I previously published a [video](https://youtu.be/JcE-1xzQTE0) and [blog post](https://vercel.com/blog/gpt-3-app-next-js-vercel-edge-functions) showing the older approach.
## Running Locally
After cloning the repo, go to [OpenAI](https://beta.openai.com/account/api-keys) to make an account and put your API key in a file called `.env`.
Then, run the application in the command line and it will be available at `http://localhost:3000`.
```bash
pnpm run dev
```
## One-Click Deploy
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):
[](https://vercel.com/new/clone?repository-url=https://github.com/Nutlope/twitterbio&env=OPENAI_API_KEY&project-name=twitter-bio-generator&repo-name=twitterbio)