https://github.com/emanuelefavero/chatgpt-clone
This is a clone of the OpenAI chatGPT website that instead uses the GPT API
https://github.com/emanuelefavero/chatgpt-clone
api chatgpt clone gpt-api nextjs openai react typescript
Last synced: 3 months ago
JSON representation
This is a clone of the OpenAI chatGPT website that instead uses the GPT API
- Host: GitHub
- URL: https://github.com/emanuelefavero/chatgpt-clone
- Owner: emanuelefavero
- License: mit
- Created: 2023-03-29T19:26:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-03T04:02:26.000Z (about 2 years ago)
- Last Synced: 2025-03-26T00:51:21.407Z (3 months ago)
- Topics: api, chatgpt, clone, gpt-api, nextjs, openai, react, typescript
- Language: TypeScript
- Homepage: https://chatgpt-clone-ten-eta.vercel.app
- Size: 449 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ChatGPT Clone
This is a clone of the [ChatGPT](https://chat.openai.com/chat) website that instead uses the [GPT API](https://platform.openai.com/docs/guides/chat)
It is really useful if the free ChatGPT is down
## Demo
- [https://chatgpt-clone-ten-eta.vercel.app/chat](https://chatgpt-clone-ten-eta.vercel.app/chat)
#### Screenshot
## How to use
- Clone the repo and `cd` into it
- Install the dependencies using `npm i`- Create a `.env` file and add your OpenAI API key as well as a secret key for authentication
> Note: You can choose any secret key string you want
```bash
API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
NEXT_PUBLIC_SECRET='Your secret key'
```- Run the development server
```bash
npm run dev
```- Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
> Note: As of early 2023 OpenAI doesn't provide the ability to store conversation memory. If you want to implement this feature, you need to use third party tools such as this one: [https://github.com/transitive-bullshit/chatgpt-api](https://github.com/transitive-bullshit/chatgpt-api)
## License
- [MIT](LICENSE.md)