Skip to content

victordonoso/chatgpt_clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple ChatGPT frontend in Django using gpt-3.5-turbo model and API

by Victor Donoso

This project uses the new gpt-3.5-turbo model API from OpenAI and a Django webserver to make a simple chatbot frontend to run it locally, consuming your own OpenAI credits by using your API Key.

Currently there are no models, just using the simplicity of Django as a webserver and using the OpenAI API to generate responses from prompts and a simple frontend to interact with the bot.

I've added Bootstrap to the frontend to make it look a bit nicer.

Usage

  1. Make sure you have a working account on OpenAI and have created an API key. Save it.
  2. Add the API key to the OPENAI_API_KEY environment variable.
  3. Install the requirements with pip install -r requirements.txt or alternatively create a virtual environment and install the requirements there. Make sure the environment variable is present in the virtual environment.
  4. Run the server with python manage.py runserver.
  5. Go to http://localhost:8000/ to interact with the bot.

TODO

  • Dunno.

License

MIT

About

A simple ChatGPT clone in Django using the new gpt-3.5-turbo model

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published