https://github.com/logankilpatrick/chatgpt-simple
Build a simple locally hosted version of ChatGPT in less than 100 lines of code
https://github.com/logankilpatrick/chatgpt-simple
chatgpt
Last synced: 14 days ago
JSON representation
Build a simple locally hosted version of ChatGPT in less than 100 lines of code
- Host: GitHub
- URL: https://github.com/logankilpatrick/chatgpt-simple
- Owner: logankilpatrick
- License: mit
- Created: 2023-03-30T17:18:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-02T13:08:38.000Z (about 2 years ago)
- Last Synced: 2025-03-30T05:09:26.845Z (21 days ago)
- Topics: chatgpt
- Language: HTML
- Homepage:
- Size: 11.7 KB
- Stars: 364
- Watchers: 8
- Forks: 50
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ChatGPT-repositories - ChatGPT-Simple - Build a simple locally hosted version of ChatGPT in less than 100 lines of code (Others)
README
# ChatGPT-Simple
Build a simple locally hosted version of ChatGPT in less than 100 lines of code. Note: This is an unofficial ChatGPT repo and is not associated with OpenAI in anyway!
## Getting started
To run the example code, you need to create an [OpenAI API key](https://platform.openai.com/account/api-keys)
1. Install requirments using
```bash
$ pip install -r requirements.txt
```
2. Create a .env file and paste your API key there
```.env
OPENAI_API_KEY = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx
```
3. Run the code and Enjoy
```bash
$ python server.py
```## The best part
This code was written by GPT-4 : )