Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alxgrg/gpt-next-app-dir-starter
Basic starter for new chatGPT 3.5 api working with the new Next app dir, route handlers and Edge runtime
https://github.com/alxgrg/gpt-next-app-dir-starter
app-dir chatgpt chatgpt-api edge nextjs nextjs13 openai tailwindcss typescript
Last synced: 3 months ago
JSON representation
Basic starter for new chatGPT 3.5 api working with the new Next app dir, route handlers and Edge runtime
- Host: GitHub
- URL: https://github.com/alxgrg/gpt-next-app-dir-starter
- Owner: alxgrg
- Created: 2023-03-07T06:07:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-07T07:33:07.000Z (over 1 year ago)
- Last Synced: 2024-04-25T01:31:27.579Z (6 months ago)
- Topics: app-dir, chatgpt, chatgpt-api, edge, nextjs, nextjs13, openai, tailwindcss, typescript
- Language: TypeScript
- Homepage:
- Size: 55.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChatGPT Next 13 App Router Starter
Just an input to prompt ChatGPT and stream the response. Adapted from the AI Twitter Bio Generator [template](https://github.com/Nutlope/twitterbio) by [Hassan El Mghari](https://github.com/Nutlope) to work with the new app dir and route handlers.
### Running locally
1. Clone the repo
2. Make an account at [OpenAI](https://beta.openai.com/account/api-keys)
3. Generate an API key
4. Store it in your `.env` file as `OPENAI_API_KEY`
5. Run `npm run dev` to start the development server.
6. Visit `http://localhost:3000` to view your application