Skip to content

Build a simple locally hosted version of ChatGPT in less than 100 lines of code

License

Notifications You must be signed in to change notification settings

amitbadala/ChatGPT-Simple

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Install requirments using
$ pip install requirements.txt
  1. Create a .env file and paste your API key there
OPENAI_API_KEY = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx
  1. Run the code and Enjoy
$ python server.py

The best part

This code was written by GPT-4 : )

About

Build a simple locally hosted version of ChatGPT in less than 100 lines of code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 72.0%
  • Python 28.0%