Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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